Skip to content

GraphExtensions

module GraphExtensions
AssemblyRanvier
Attributes[<AutoOpen>]

Methods

member Run<'T> (body: unit -> 'T) : 'T

Activates the graph, runs body, and restores the previous ambient graph — the whole of the common case in one call.

The graph is not disposed afterwards: it outlives the call, which is what makes the effects created inside body keep running.