BlockingQueue.push

Pushes an uninitialized item to the queue.

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

  1. void push(Type item, Timeout timeout)
  2. Type* push(Timeout timeout)
    struct BlockingQueue(Type, ushort MaxItems)
    @safe @nogc
    Type*
    push

Parameters

timeout Timeout

how long to wait if no room to add immediately.

Return Value

Type: Type*

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

Meta