Fiber::ExecutionContext::Parallel::Scheduler
Inherits Fiber::ExecutionContext::Scheduler / Reference / Object
Individual scheduler for the parallel execution context.
The execution context itself doesn't run the fibers. The fibers actually run in the schedulers. Each scheduler in the context increases the parallelism by one. For example a parallel context with 8 schedulers means that a maximum of 8 fibers may run at the same time in different system threads.
Instance methods
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>
name
Sourcestatus
Returns the current status of the scheduler. For example "running",
"event-loop" or "parked".