Patch Changes
-
#2075
3ddfdbf
Thanks @tim-smart! - add apis for manipulating context to the Runtime moduleThese include:
Runtime.updateContext
for modifying theContext
directlyRuntime.provideService
for adding services to an existing Runtime
Example:
import { Context, Runtime } from "effect"; interface Name { readonly _: unique symbol; } const Name = Context.Tag<Name, string>("Name"); const runtime: Runtime.Runtime<Name> = Runtime.defaultRuntime.pipe( Runtime.provideService(Name, "John"), );
-
#2075
3ddfdbf
Thanks @tim-smart! - add apis for patching runtime flags to the Runtime moduleThe apis include:
Runtime.updateRuntimeFlags
for updating all the flags at onceRuntime.enableRuntimeFlag
for enabling a single runtime flagRuntime.disableRuntimeFlag
for disabling a single runtime flag