class Async::Task
def self.current
-
(RuntimeError)
- if task was not {set!} for the current fiber.
Returns:
-
(Async::Task)
-
def self.current Thread.current[:async_task] or raise RuntimeError, "No async task available!" end
(RuntimeError)
- if task was not {set!} for the current fiber.
(Async::Task)
-
def self.current Thread.current[:async_task] or raise RuntimeError, "No async task available!" end