Custom Task
Quantum methods for running custom tasks.
CustomTask
¶
Quantum methods for running custom tasks.
Source code in src/scruby/mixins/custom_task.py
run_custom_task(custom_task_fn, filter_fn=lambda _: True, **kwargs)
async
¶
For run an asynchronous custom task.
Attention
- The search is based on the effect of a quantum loop.
- The search effectiveness depends on the number of processor threads.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
custom_task_fn
|
Callable
|
A function that execute the custom task. |
required |
Returns:
| Type | Description |
|---|---|
Any
|
The result of a custom task. |