Header menu logo FSharp.Core

FSharp.Control Namespace

Library functionality for asynchronous programming, events and agents. See also Asynchronous Programming, Events and Lazy Expressions in the F# Language Guide.

Contents

Async Programming

Type/Module Description

Async

Holds static members for creating and manipulating asynchronous computations.

Async<'T>

An asynchronous computation, which, when run, will eventually produce a value of type T, or else raises an exception.

AsyncBuilder

The type of the async operator, used to build workflows for asynchronous computations.

CommonExtensions

A module of extension members providing asynchronous operations for some basic CLI types related to concurrency and I/O.

WebExtensions

A module of extension members providing asynchronous operations for some basic Web operations.

Events and Observables

Type/Module Description

DelegateEvent<'Delegate>

Event implementations for an arbitrary type of delegate.

Event

Contains operations for working with values of type IEvent.

Event<'T>

Event implementations for the IEvent<_> type.

Event<'Delegate, 'Args>

Event implementations for a delegate types following the standard .NET Framework convention of a first 'sender' argument.

Handler<'T>

A delegate type associated with the F# event type IEvent<_>

IDelegateEvent<'Delegate>

First class event values for arbitrary delegate types.

IEvent<'T>

First-class listening points (i.e. objects that permit you to register a callback activated when the event is triggered).

IEvent<'Delegate, 'Args>

First class event values for CLI events conforming to CLI Framework standards.

Observable

Contains operations for working with first class event and other observable objects.

Lazy Computation

Modules Description

LazyExtensions

Extensions related to Lazy values.

Agents

Type Description

AsyncReplyChannel<'Reply>

A handle to a capability to reply to a PostAndReply message.

MailboxProcessor<'Msg>

A message-processing agent which executes an asynchronous computation.

Async Internals

Type/Module Description

AsyncActivation<'T>

The F# compiler emits references to this type to implement F# async expressions.

AsyncPrimitives

Entry points for generated code

AsyncReturn

The F# compiler emits references to this type to implement F# async expressions.

Other namespace members

Type/Module Description

BackgroundTaskBuilder

Contains methods to build tasks using the F# computation expression syntax

TaskBuilder (Module)

Contains the `task` computation expression builder.

TaskBuilder (Type)

Contains methods to build tasks using the F# computation expression syntax

TaskBuilderBase

Contains methods to build tasks using the F# computation expression syntax

TaskCode<'TOverall, 'T>

A special compiler-recognised delegate type for specifying blocks of task code with access to the state machine.

TaskResumptionFunc<'TOverall>

Represents the runtime continuation of a task state machine created dynamically

TaskStateMachine<'TOverall>

This is used by the compiler as a template for creating state machine structs

TaskStateMachineData<'T>

The extra data stored in ResumableStateMachine for tasks

Type something to start searching.