-
-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate BlockingTrioPortal in favor of from_thread.run and from_thread.run_sync #1122
Merged
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
7f36105
[trio.from_thread]
epellis 26d4b02
[trio.from_thread]
epellis e1da9d2
[trio.from_thread]
epellis e871264
[trio.from_thread]
epellis d324d9f
[trio.from_thread]
epellis 72b1ad7
Merge branch 'master' of github.com:python-trio/trio
epellis 661e087
[trio.from_thread]
epellis 84c5ad3
[trio.from_thread]
epellis 7aa905f
[trio.from_thread]
epellis 0e5da56
[trio.from_thread]
epellis 38f7b40
Merge remote-tracking branch 'upstream/master'
edwarde-astranis 77bbdac
Fixed docstrings and minor nits
edwarde-astranis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
""" | ||
This namespace represents special functions that can call back into Trio from | ||
an external thread by means of a Trio Token present in Thread Local Storage | ||
""" | ||
|
||
from ._threads import (run_sync, run) |
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReStrustructured Text format is a little weird: double-backticks, like
``trio.from_thread.run``
, mean raw literal code – it's the equivalent of markdown's single-backticks. If you want to use:func:
to link to a named function, then you have to use single-backticks::func:`trio.from_thread.run`
.But, since #1091 was merged recently, we don't even need to write
:func:
most of the time – if you just plain single-backticks, like`trio.from_thread.run`
, then sphinx will now automatically find the object and link to it – you don't have to use:func:
to specify the type.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the hint! Yeah, I have never used RST, only Markdown, and also never Sphinx either so the docs are a bit of a learning curve for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like these double backticks still need to be replaced with single backticks.