EventletAdaptedEvent
An adapted eventlet event, designed to match the API of threading.Event and gevent.event.Event.
Attributes
| Attribute | Type | Description |
|---|---|---|
| evt | eventlet.Event | The underlying eventlet Event instance used to manage internal signaling and synchronization. |
Constructor
Signature
def EventletAdaptedEvent() - > null
Signature
def EventletAdaptedEvent() - > null
Methods
is_set()
@classmethod
def is_set() - > boolean
Checks whether the internal event has been set.
Returns
| Type | Description |
|---|---|
boolean | True if the event has been set and is ready, False otherwise |
set()
@classmethod
def set() - > null
Sets the internal event, signaling any threads or greenlets waiting on it.
Returns
| Type | Description |
|---|---|
null | None |
wait()
@classmethod
def wait(
timeout: float = None
) - > any
Blocks until the internal event is set or until the optional timeout expires.
Parameters
| Name | Type | Description |
|---|---|---|
| timeout | float = None | The maximum number of seconds to wait for the event to be set before returning |
Returns
| Type | Description |
|---|---|
any | The value sent to the event, or None if the timeout is reached |