UNPKG

@effect-ts/system

Version:

Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.

17 lines (14 loc) 500 B
// ets_tracing: off import * as R from "../../Effect/runtime.js" import { fromEffect } from "../fromEffect.js" import type { Managed } from "../managed.js" /** * Returns an Managed that accesses the runtime, which can be used to * (unsafely) execute tasks. This is useful for integration with legacy * code that must call back into Effect code. */ export function runtime<R>( __trace?: string ): Managed<R, never, R.CustomRuntime<R, unknown>> { return fromEffect(R.runtime<R>(), __trace) }