Ufo.TwoWayQueue

Fields

None

Methods

consumer_pop ()

consumer_push (data)

free ()

get_capacity ()

insert (data)

producer_pop ()

producer_push (data)

Details

class Ufo.TwoWayQueue
consumer_pop()
Returns:

A consumable item.

Return type:

object or None

Fetch an item for consumption.

consumer_push(data)
Parameters:

data (object or None) –

free()
get_capacity()
Return type:

int

insert(data)
Parameters:

data (object or None) –

producer_pop()
Returns:

A producable item.

Return type:

object or None

Fetch an item for production.

producer_push(data)
Parameters:

data (object or None) –