A message queue for multithread access.

Methods

@:impladd(i:T):Void

Add a message at the end of the queue.

@:implpop(block:Bool):Null<T>

Pop a message from the queue head. Either block until a message is available or return immediately with null.

@:implpush(i:T):Void

Add a message at the head of the queue.