abstract class Movie::Dispatcher

Direct Known Subclasses

Defined in:

movie.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(execution_context : Fiber::ExecutionContext) #

[View source]

Instance Method Detail

def dispatch(mailbox : Mailbox) #

[View source]
def execute(&block : -> Nil) #

Spawns a fiber in this dispatcher's execution context to run the given block. Used by the Scheduler for timer callbacks and other deferred execution.


[View source]