@@ -376,15 +376,15 @@ def run(afn, *args, trio_token=None):
376
376
This happens when it was not spawned from trio.run_sync_in_thread.
377
377
378
378
**Locating a Trio Token**: There are two ways to specify which
379
- `trio.run() ` loop to reenter: :
379
+ `trio.run` loop to reenter:
380
380
381
- - Spawn this thread from `run_sync_in_thread`. This will
381
+ - Spawn this thread from `trio. run_sync_in_thread`. This will
382
382
"inject" the current Trio Token into thread local storage and allow
383
383
this function to re-enter the same `trio.run` loop.
384
384
- Pass a keyword argument, ``trio_token`` specifiying a specific
385
385
`trio.run` loop to re-enter. This is the "legacy" way of
386
386
re-entering a trio thread and is similar to the old
387
- `BlockingTrioPortal`.
387
+ `` BlockingTrioPortal` `.
388
388
"""
389
389
390
390
def callback (q , afn , args ):
@@ -422,15 +422,15 @@ def run_sync(fn, *args, trio_token=None):
422
422
This happens when it was not spawned from trio.run_sync_in_thread.
423
423
424
424
**Locating a Trio Token**: There are two ways to specify which
425
- `trio.run` loop to reenter::
425
+ `trio.run` loop to reenter:
426
426
427
- - Spawn this thread from `run_sync_in_thread`. This will
427
+ - Spawn this thread from `trio. run_sync_in_thread`. This will
428
428
"inject" the current Trio Token into thread local storage and allow
429
429
this function to re-enter the same `trio.run` loop.
430
430
- 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
432
432
re-entering a trio thread and is similar to the old
433
- `BlockingTrioPortal`.
433
+ `` BlockingTrioPortal` `.
434
434
"""
435
435
436
436
def callback (q , fn , args ):
0 commit comments