Skip to content

Commit 84c5ad3

Browse files
committed
[trio.from_thread]
Found the remaining RST linting errors thanks to @Fuyukai and the trio gitter.im. Thanks!
1 parent 661e087 commit 84c5ad3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

trio/_threads.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -376,15 +376,15 @@ def run(afn, *args, trio_token=None):
376376
This happens when it was not spawned from trio.run_sync_in_thread.
377377
378378
**Locating a Trio Token**: There are two ways to specify which
379-
`trio.run()` loop to reenter::
379+
`trio.run` loop to reenter:
380380
381-
- Spawn this thread from `run_sync_in_thread`. This will
381+
- Spawn this thread from `trio.run_sync_in_thread`. This will
382382
"inject" the current Trio Token into thread local storage and allow
383383
this function to re-enter the same `trio.run` loop.
384384
- Pass a keyword argument, ``trio_token`` specifiying a specific
385385
`trio.run` loop to re-enter. This is the "legacy" way of
386386
re-entering a trio thread and is similar to the old
387-
`BlockingTrioPortal`.
387+
``BlockingTrioPortal``.
388388
"""
389389

390390
def callback(q, afn, args):
@@ -422,15 +422,15 @@ def run_sync(fn, *args, trio_token=None):
422422
This happens when it was not spawned from trio.run_sync_in_thread.
423423
424424
**Locating a Trio Token**: There are two ways to specify which
425-
`trio.run` loop to reenter::
425+
`trio.run` loop to reenter:
426426
427-
- Spawn this thread from `run_sync_in_thread`. This will
427+
- Spawn this thread from `trio.run_sync_in_thread`. This will
428428
"inject" the current Trio Token into thread local storage and allow
429429
this function to re-enter the same `trio.run` loop.
430430
- Pass a keyword argument, ``trio_token`` specifiying a specific
431-
`trio.run()` loop to re-enter. This is the "legacy" way of
431+
`trio.run` loop to re-enter. This is the "legacy" way of
432432
re-entering a trio thread and is similar to the old
433-
`BlockingTrioPortal`.
433+
``BlockingTrioPortal``.
434434
"""
435435

436436
def callback(q, fn, args):

0 commit comments

Comments
 (0)