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.
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
Returns the current status of the scheduler.
Appends a short String representation of this object which includes its class name and its object address.
Fiber::ExecutionContext::Scheduler
Fiber::ExecutionContext::Scheduler
Fiber::ExecutionContext::Scheduler
Reference
Reference
Reference
Object
Object
Object
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> Returns the current status of the scheduler. For example "running", "event-loop" or "parked".
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>
© 2012–2026 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/1.19.0/Fiber/ExecutionContext/Parallel/Scheduler.html