Table of contents
Collapse the table of content
Expand the table of content

RuntimeHelpers.EnumerateThenFinally<'T> Function (F#)

Den Delimarsky|Last Updated: 8/18/2017
1 Contributor

The F# compiler emits calls to this function to implement the try...finally construct for F# sequence expressions.

Namespace/Module Path: Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers

Assembly: FSharp.Core (in FSharp.Core.dll)


// Signature:
RuntimeHelpers.EnumerateThenFinally : seq<'T> -> (unit -> unit) -> seq<'T>

// Usage:
RuntimeHelpers.EnumerateThenFinally source compensation


source Type: seq<'T>

The input sequence.

compensation Type: unit->unit

A computation to be included in an enumerator's Dispose method.

Return Value

The result sequence.


Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

Version Information

F# Core Library Versions

Supported in: 2.0, 4.0, Portable

See Also

CompilerServices.RuntimeHelpers Module (F#)

Microsoft.FSharp.Core.CompilerServices Namespace (F#)

© 2020 Microsoft