get_nowait

Applicable Products

Product

Supported

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

x

Atlas inference products

x

Atlas training products

x

Function Description

Obtains elements in a queue without waiting. The function is the same as get(block=False).

Prototype

1
get_nowait(self)

Parameters

None

Returns

Data object of the corresponding type in MsgType

Exception Handling

When the queue is empty, the queue.Empty exception is reported.

Constraints

None