ORIONIS API REFERENCE

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.

class documentation

Represent a background task that can be executed asynchronously.

Parameters
funcThe function to be executed in the background.
*argsPositional arguments to pass to the function.
**kwargsKeyword arguments to pass to the function.
Async Method __call__ Execute the background task, handling both sync and async functions.
Method __init__ Initialize the BackgroundTask instance.
Async Method run Run the background task.
Class Variable __slots__ Undocumented
Instance Variable __args Undocumented
Instance Variable __func Undocumented
Instance Variable __is_async Undocumented
Instance Variable __kwargs Undocumented
async def __call__(self): (source)

Execute the background task, handling both sync and async functions.

Returns
NoneThis method does not return a value.
def __init__(self, func: Callable, *args: object, **kwargs: object): (source)

Initialize the BackgroundTask instance.

Parameters
func:CallableThe function to be executed in the background.
*args:AnyPositional arguments to pass to the function.
**kwargs:AnyKeyword arguments to pass to the function.
Returns
NoneThis method does not return a value.
async def run(self): (source)

Run the background task.

Returns
NoneThis method does not return a value.
__args: tuple[object, ...] = (source)

Undocumented

__func: Callable[..., Any] = (source)

Undocumented

__is_async: bool = (source)

Undocumented

Undocumented