ezmsg.sigproc.util.asio#
Functions
- run_coroutine_sync(coroutine, timeout=30)[source]#
Executes an asyncio coroutine synchronously, with enhanced error handling.
- Parameters:
- Returns:
The result of the coroutine execution
- Raises:
CoroutineExecutionError – If execution fails due to threading or event loop issues
TimeoutError – If execution exceeds the timeout period
Exception – Any exception raised by the coroutine
- Return type:
T
Classes
- class SyncToAsyncGeneratorWrapper(gen)[source]#
Bases:
objectA wrapper for synchronous generators to be used in an async context.
Exceptions
- exception CoroutineExecutionError[source]#
Bases:
ExceptionCustom exception for coroutine execution failures
- exception CoroutineExecutionError[source]#
Bases:
ExceptionCustom exception for coroutine execution failures
- run_coroutine_sync(coroutine, timeout=30)[source]#
Executes an asyncio coroutine synchronously, with enhanced error handling.
- Parameters:
- Returns:
The result of the coroutine execution
- Raises:
CoroutineExecutionError – If execution fails due to threading or event loop issues
TimeoutError – If execution exceeds the timeout period
Exception – Any exception raised by the coroutine
- Return type:
T