Header menu logo Mibo

Sub<'Msg> Type

Represents a subscription that listens for external events and dispatches messages.

Subscriptions are the Elmish way to handle external event sources (input devices, timers, network events). The runtime diffs subscriptions by SubId to determine which to start/stop across frames.

Union cases

Union case Description

Active(SubId, Subscribe<'Msg>)

Full Usage: Active(SubId, Subscribe<'Msg>)

Parameters:

An active subscription with a unique ID

Item1 : SubId
Item2 : Subscribe<'Msg>

BatchSub Sub<'Msg>[]

Full Usage: BatchSub Sub<'Msg>[]

Parameters:
    Item : Sub<'Msg>[]

Multiple subscriptions combined

Item : Sub<'Msg>[]

NoSub

Full Usage: NoSub

No subscription (use )

Instance members

Instance member Description

this.IsActive

Full Usage: this.IsActive

Returns: bool
Returns: bool

this.IsBatchSub

Full Usage: this.IsBatchSub

Returns: bool
Returns: bool

this.IsNoSub

Full Usage: this.IsNoSub

Returns: bool
Returns: bool

Type something to start searching.