EffectTalk

ManagedRuntime.make for reusable execution

Use ManagedRuntime.make(layer) to create a runtime from a layer. The runtime bakes in your services— run effects with runtime.runPromise(effect) without passing layers each time. Call runtime.dispose() when done to clean up scoped resources.

  • Use ManagedRuntime.make(layer) to create a runtime
  • Use runtime.runPromise(effect) to run effects
  • Call runtime.dispose() when done to clean up
Loading code editor...