Logo Mibo

AdaptiveSub Type

A subscription spec: a stable identifier plus an attach function. The adaptive counterpart of Sub: the attach function receives the SubPosting surface instead of Dispatch<'Msg>, so subscription events never run handlers directly — they post work, handled on the owner thread at the next step's boundary, before Update, in order.

Record fields

Record Field Description

Attach

Full Usage: Attach

Field type: SubPosting -> IDisposable

Attaches the subscription and returns a disposable that detaches it. The posting argument is the SubPosting surface: its SubPosting.Post queues work for the pre-step drain, and the runner handles it on the owner thread at the next step's boundary, before Update — a foreign-thread callback can never run game code directly. Prefer the builders in the AdaptiveSub module (ofObservable, ofTimer) over writing Attach by hand.

Field type: SubPosting -> IDisposable

Id

Full Usage: Id

Field type: SubId

Stable key the runtime uses to diff subscriptions across steps.

Field type: SubId

Type something to start searching.