class BoolChannel::StateChannel::EndlessQueue

Defined in:

lavinmq/bool_channel.cr

Instance Method Summary

Instance methods inherited from class Deque(Nil)

capacity capacity

Instance Method Detail

def empty=(empty : Bool) #

[View source]
def empty? : Bool #
Description copied from module Indexable(Nil)

Returns true if self is empty, false otherwise.

([] of Int32).empty? # => true
([1]).empty?         # => false

[View source]
def push(value : T) #
Description copied from class Deque(Nil)

Adds an item to the end of the deque.

a = Deque{1, 2}
a.push 3 # => Deque{1, 2, 3}

[View source]
def shift(&) #
Description copied from class Deque(Nil)

Removes and returns the first item, if not empty, otherwise executes the given block and returns its value.


[View source]