timed_pop


Description:

public Message? timed_pop (ClockTime timeout)

Gets a message from the bus, waiting up to the specified timeout.

If timeout is 0, this function behaves like pop. If timeout is CLOCK_TIME_NONE, this function will block forever until a message was posted on the bus.

Parameters:

this

a Bus to pop

timeout

a timeout

Returns:

the Message that is on the bus after the specified timeout or null if the bus is empty after the timeout expired.