Skip to content

NSRunloopSequencer class

Attributes: [DebuggerDisplay("{DebuggerDisplay,nq}")]

Defined in

Namespace: ReactiveUI.Primitives.Reactive.Concurrency Assembly: ReactiveUI.Primitives.Reactive.dll Full name: ReactiveUI.Primitives.Reactive.Concurrency.NSRunloopSequencer Modifiers: public sealed

Summary

View source

System.Reactive-flavoured Apple scheduler that coalesces scheduled work onto the main DispatchQueue (the UI thread on iOS, tvOS, Mac Catalyst, and macOS). Immediate work is batched through a single cached DispatchBlock drain, so the per-post path allocates nothing; delayed work uses DispatchAfter.

Applies to

net10.0-ios26.0, net10.0-macos26.0, net10.0-maccatalyst26.0, net10.0-tvos26.0

Class hierarchy
classDiagram
class NSRunloopSequencer
class CoalescingDispatchScheduler
CoalescingDispatchScheduler <|-- NSRunloopSequencer

Inherits from: CoalescingDispatchScheduler

Properties

NameSummary
static MainGets a sequencer that marshals work onto the main dispatch queue.

Methods

NameSummary
ToString
PostPosts the cached drain callback to the platform dispatcher.
ScheduleOnDispatcherRuns work on the dispatcher after dueTime. The default marshals the wait onto the shared timer, then re-queues the work onto the dispatcher when it is due. Platforms with a native UI-thread...
Inherited members

See also