ImmediateScheduler
public final class ImmediateScheduler : Scheduler
A scheduler that performs all work synchronously.
-
Immediately calls passed in
action
.Declaration
Swift
@discardableResult public func schedule(_ action: @escaping () -> Void) -> Disposable?
Parameters
action
A closure of the action to be performed.
Return Value
nil
.