struct Syn::Core::WaitList

Overview

Holds a singly linked list of pending Fiber. It is used to build all the other concurrency objects. Implemented as a FIFO list. Assumes that a Fiber can only ever be in a single WaitList at any given time, and will be suspended while it's in the list.

Defined in:

core/wait_list.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def clear : Nil #

[View source]
def delete(fiber : Fiber) : Nil #

[View source]
def each(& : Fiber -> ) : Nil #

[View source]
def each : Iterator | Nil #

[View source]
def initialize #

[View source]
def push(fiber : Fiber) : Nil #

[View source]
def shift? : Fiber | Nil #

[View source]