Package coro :: Module _coro :: Class event_queue
[hide private]
[frames] | no frames]

Class event_queue

object --+
         |
        event_queue

Instance Methods [hide private]
 
__iter__(x)
iter(x)
 
__len__(x)
len(x)
a new object with type S, a subtype of T
__new__(T, S, ...)
 
delete(...)
Delete a value from the queue.
 
insert(...)
Insert a new value into the queue.
 
pop(...)
Grab the top value of the queue and remove it.
 
top(...)
Peek at the top value of the queue.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

delete(...)

 
Delete a value from the queue.
Parameters:
  • time - : The uint64 time.
  • value - : The value to delete.

insert(...)

 
Insert a new value into the queue.
Parameters:
  • time - : The uint64 time.
  • value - : The value to insert.

pop(...)

 
Grab the top value of the queue and remove it.
Returns:
Returns a (time, value) tuple from the top of the queue.
Raises:
  • IndexError - : The queue is empty.

top(...)

 
Peek at the top value of the queue.
Returns:
Returns a (time, value) tuple from the top of the queue.
Raises:
  • IndexError - : The queue is empty.