BlockingQueue.push - multiple declarations

Function BlockingQueue.push

Add an item to the queue.

void push (
  Type item,
  Timeout timeout = Timeout.infinite
) @nogc @safe;

Parameters

NameDescription
item item to add.
timeout how long to wait if no room to add immediately.

Function BlockingQueue.push

Pushes an uninitialized item to the queue.

Type* push (
  Timeout timeout = Timeout.infinite
) @nogc @safe;

For items that are faster to initialize in place than to copy, this form will be faster.

Parameters

NameDescription
timeout how long to wait if no room to add immediately.

Returns

A pointer to the newly created item, so it can be filled with values.