ScopeType
PackageAxial
Scope
A Scope owns finalizers for resources and child fibers. Closing it runs registered cleanup in reverse order, at most
once, and waits for cleanup before returning.
Most application code should not construct or mutate Scope directly. Use the Flow-level operations:
Flow.scopedcreates and closes a child scope.Flow.scopeAcquireReleaseacquires a value into the current scope.Flow.scopeResourceacquires a reusableResourcedescription.Flow.scopeDisposableandFlow.scopeAsyncDisposableregister existing .NET resources.Flow.scopeFinalizerandFlow.scopeAsyncFinalizerregister custom cleanup.
This runtime lifetime differs from F# use and use!, which dispose when their lexical computation-expression body
exits. A Flow scope can intentionally span functions, subflows, stream pulls, and child fibers.
Read the Scopes guide for a timeline of root, lexical, child, and nested lifetimes before using the low-level members listed below.
Specification
Kind
Type
Members
6
Examples
0
``.ctor``Signature
Scope()
AddAsyncDisposableSignature
this.AddAsyncDisposable
AddChildSignature
this.AddChild
AddDisposableSignature
this.AddDisposable
AddFinalizerSignature
this.AddFinalizer
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| ``.ctor`` | Scope() | No description available. |
| AddAsyncDisposable | this.AddAsyncDisposable | No description available. |
| AddChild | this.AddChild | No description available. |
| AddDisposable | this.AddDisposable | No description available. |
| AddFinalizer | this.AddFinalizer | No description available. |
| Close | this.Close | No description available. |

