THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
module documentation
Provide mcp operations through AsyncClosable, OwnedStream.
| Class | |
Describe the awaited close operation of an owned asynchronous source. |
| Class | |
Join source cleanup before propagating delivery errors or cancellation. |
| Function | _caller |
Identify new caller cancellation while an owned cleanup was awaited. |
| Function | _create |
Close an owned coroutine when the loop refuses to schedule it. |
Identify new caller cancellation while an owned cleanup was awaited.
| Parameters | |
error:BaseException | Outcome of joining cleanup, which may itself have been cancelled. |
cancellations:int | Caller cancellation count recorded before the owned operation. |
| Returns | |
bool | Whether the outcome carries a new cancellation request for this caller. |
def _create_task(coroutine:
Coroutine[ object, object, T], *, name: str | None = None) -> asyncio.Task[ T]:
(source)
¶
Close an owned coroutine when the loop refuses to schedule it.
| Parameters | |
coroutine:collections.abc.Coroutine[object, object, T] | Operation whose ownership is transferred only after successful admission. |
name:str | None, optional | Diagnostic task name. |
| Returns | |
asyncio.Task[T] | Task owning the admitted coroutine. |
| Raises | |
BaseException | If task creation fails, after closing the unowned coroutine. |