Sha256: 72e08b8c0a38fb4869312d08fa88ee34bf531eff362b6eb874cbdf208058f794
Contents?: true
Size: 527 Bytes
Versions: 3
Compression:
Stored size: 527 Bytes
Contents
# frozen_string_literal: true # Released under the MIT License. # Copyright, 2017-2022, by Samuel Williams. # Copyright, 2017, by Kent Gruber. # Copyright, 2018, by Sokolov Yura. require_relative 'scheduler' module Async # A wrapper around the the scheduler which binds it to the current thread automatically. class Reactor < Scheduler # @deprecated Replaced by {Kernel::Async}. def self.run(...) Async(...) end def initialize(...) super Fiber.set_scheduler(self) end public :sleep end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
async-2.2.1 | lib/async/reactor.rb |
async-2.2.0 | lib/async/reactor.rb |
async-2.1.0 | lib/async/reactor.rb |