Module: Kernel
- Defined in:
- lib/kernel/sync.rb,
lib/kernel/async.rb
Instance Method Summary collapse
-
#Async(*arguments, **options, &block) ⇒ Object
Run the given block of code in a task, asynchronously, creating a reactor if necessary.
-
#Sync(&block) ⇒ Object
Run the given block of code synchronously, but within a reactor if not already in one.