Skip to content

Commit

Permalink
feat: task and use_task for better asyncio task a thread execution
Browse files Browse the repository at this point in the history
use_task can replace use_thread, but also support coroutine functions.

task is a decorator that creates a top level task that can be executed
from any location (e.g. a click handler of a button).
  • Loading branch information
maartenbreddels committed Feb 15, 2024
1 parent 73647ee commit 3cea2ab
Show file tree
Hide file tree
Showing 6 changed files with 1,358 additions and 0 deletions.
1 change: 1 addition & 0 deletions solara/lab/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# isort: skip_file
from .components import * # noqa: F401, F403
from ..server.kernel_context import on_kernel_start # noqa: F401
from ..tasks import task, use_task, Task, TaskResult # noqa: F401, F403
from ..toestand import computed # noqa: F401


Expand Down
Loading

0 comments on commit 3cea2ab

Please sign in to comment.