Repository navigation
feat: task and use_task for better asyncio task a thread execution - #461
Merged
maartenbreddels merged 1 commit intoFeb 16, 2024
Conversation
This was referenced Jan 12, 2024
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @maartenbreddels and the rest of your teammates on |
maartenbreddels
force-pushed
the
01-12-feat_task_and_use_task_for_better_asyncio_task_a_thread_execution
branch
from
January 12, 2024 12:17
cf13f50 to
64e8e1c
Compare
maartenbreddels
force-pushed
the
01-10-feat_Computed_reactive_variables_and_Singleton
branch
from
January 12, 2024 13:02
530c72b to
2a2db1c
Compare
maartenbreddels
force-pushed
the
01-12-feat_task_and_use_task_for_better_asyncio_task_a_thread_execution
branch
from
January 12, 2024 13:02
64e8e1c to
2398ddd
Compare
iisakkirotko
requested changes
Jan 12, 2024
iisakkirotko
left a comment
Collaborator
There was a problem hiding this comment.
This feature is definitely going to have some demand! I'll give a possible different example in the docs some more thought.
| state=solara.ResultState.INITIAL, | ||
| ) | ||
| ) | ||
| # self.thread_pool = ThreadPoolExecutor(max_workers=1) |
Collaborator
There was a problem hiding this comment.
Suggested change
| # self.thread_pool = ThreadPoolExecutor(max_workers=1) |
maartenbreddels
force-pushed
the
01-10-feat_Computed_reactive_variables_and_Singleton
branch
from
January 18, 2024 09:33
2a2db1c to
f4e000c
Compare
maartenbreddels
force-pushed
the
01-12-feat_task_and_use_task_for_better_asyncio_task_a_thread_execution
branch
from
January 18, 2024 09:33
2398ddd to
9a3277d
Compare
maartenbreddels
changed the base branch from
01-10-feat_Computed_reactive_variables_and_Singleton
to
master
January 19, 2024 10:46
maartenbreddels
force-pushed
the
01-12-feat_task_and_use_task_for_better_asyncio_task_a_thread_execution
branch
from
January 19, 2024 10:47
eaced63 to
283ffff
Compare
maartenbreddels
changed the base branch from
master
to
01-10-feat_Computed_reactive_variables_and_Singleton
January 19, 2024 10:47
maartenbreddels
force-pushed
the
01-10-feat_Computed_reactive_variables_and_Singleton
branch
from
January 19, 2024 12:58
fd38bdc to
d729d5d
Compare
maartenbreddels
force-pushed
the
01-12-feat_task_and_use_task_for_better_asyncio_task_a_thread_execution
branch
from
January 19, 2024 12:58
283ffff to
7288e79
Compare
This was referenced Jan 19, 2024
maartenbreddels
force-pushed
the
01-10-feat_Computed_reactive_variables_and_Singleton
branch
from
January 19, 2024 19:42
d729d5d to
96720b1
Compare
maartenbreddels
force-pushed
the
01-12-feat_task_and_use_task_for_better_asyncio_task_a_thread_execution
branch
from
January 19, 2024 19:42
7288e79 to
86758cc
Compare
maartenbreddels
force-pushed
the
01-10-feat_Computed_reactive_variables_and_Singleton
branch
3 times, most recently
from
January 22, 2024 11:48
3e25f02 to
c2c3c95
Compare
iisakkirotko
force-pushed
the
01-10-feat_Computed_reactive_variables_and_Singleton
branch
from
February 5, 2024 13:36
c2c3c95 to
0134661
Compare
iisakkirotko
force-pushed
the
01-12-feat_task_and_use_task_for_better_asyncio_task_a_thread_execution
branch
from
February 5, 2024 13:36
86758cc to
06c4657
Compare
This was referenced Feb 5, 2024
iisakkirotko
force-pushed
the
01-10-feat_Computed_reactive_variables_and_Singleton
branch
2 times, most recently
from
February 8, 2024 16:14
6acaeba to
5b55459
Compare
iisakkirotko
force-pushed
the
01-12-feat_task_and_use_task_for_better_asyncio_task_a_thread_execution
branch
from
February 8, 2024 16:14
899a669 to
850c94b
Compare
maartenbreddels
force-pushed
the
01-10-feat_Computed_reactive_variables_and_Singleton
branch
2 times, most recently
from
February 9, 2024 16:10
7bd5707 to
7d63ad0
Compare
maartenbreddels
force-pushed
the
01-12-feat_task_and_use_task_for_better_asyncio_task_a_thread_execution
branch
from
February 10, 2024 14:39
850c94b to
5928f23
Compare
maartenbreddels
changed the base branch from
01-10-feat_Computed_reactive_variables_and_Singleton
to
master
February 10, 2024 14:42
maartenbreddels
force-pushed
the
01-12-feat_task_and_use_task_for_better_asyncio_task_a_thread_execution
branch
2 times, most recently
from
February 12, 2024 13:25
99bb183 to
6e30237
Compare
maartenbreddels
added a commit
that referenced
this pull request
Feb 12, 2024
This is required for #461 but upgrading to an even never version will lead to many errors/issues. This version is the smallest upgrade that fixes the issue for this PR.
maartenbreddels
force-pushed
the
01-12-feat_task_and_use_task_for_better_asyncio_task_a_thread_execution
branch
4 times, most recently
from
February 14, 2024 16:50
1f4fc86 to
d39063b
Compare
maartenbreddels
added a commit
that referenced
this pull request
Feb 15, 2024
This is required for #461 but upgrading to an even never version will lead to many errors/issues. This version is the smallest upgrade that fixes the issue for this PR.
maartenbreddels
force-pushed
the
master
branch
from
February 15, 2024 11:39
0099274 to
f7bfb29
Compare
maartenbreddels
force-pushed
the
01-12-feat_task_and_use_task_for_better_asyncio_task_a_thread_execution
branch
4 times, most recently
from
February 15, 2024 15:05
3cea2ab to
fcea18f
Compare
maartenbreddels
force-pushed
the
01-12-feat_task_and_use_task_for_better_asyncio_task_a_thread_execution
branch
from
February 16, 2024 11:15
fcea18f to
48b5d63
Compare
maartenbreddels
force-pushed
the
01-12-feat_task_and_use_task_for_better_asyncio_task_a_thread_execution
branch
2 times, most recently
from
February 16, 2024 12:16
1c11cf2 to
f981cfd
Compare
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).
maartenbreddels
force-pushed
the
01-12-feat_task_and_use_task_for_better_asyncio_task_a_thread_execution
branch
from
February 16, 2024 13:34
f981cfd to
a9f836f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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).