CleanupBuilder
[<Class>]
type CleanupBuilder =
new () : CleanupBuilder
member inline Combine (first: unit, second: unit -> unit) : unit
member inline Delay (f: unit -> unit) : unit -> unit
member inline For<'Item> (sequence: 'Item seq, body: 'Item -> unit) : unit
member inline Run (d: unit -> unit) : unit
member inline TryFinally (body: unit -> unit, compensation: unit -> unit) : unit
member inline TryWith (body: unit -> unit, handler: exn -> unit) : unit
member inline Using<'D when 'D :> IDisposable> (resource: 'D, body: 'D -> unit) : unit
member inline While (guard: unit -> bool, body: unit -> unit) : unit
member inline Zero () : unit| Assembly | Ranvier |
| Attributes | [<Sealed>] |
Computation expression builder registering a unit cleanup action on the innermost enclosing scope.
Registers a LIFO cleanup in O(1) (onCleanup), running untracked before re-run and at disposal.
Constructors
new () : CleanupBuilder