Skip to content

Commit dd091fa

Browse files
tidy up some docs
1 parent 1bffaa9 commit dd091fa

4 files changed

Lines changed: 23 additions & 6 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ assert out == (4, 5)
2727
- An error in one coroutine will cancel all coroutines across the entire event loop.
2828
- If the erroring coroutine is sequentially depended on by a chain of other coroutines, then we chain their tracebacks for easier debugging.
2929
- Errors propagate to and from synchronous operations ran in threads.
30-
- Can nest tinyio loops inside each other, none of this one-per-thread business.
30+
- Can nest `tinyio` loops inside each other, none of this one-per-thread business.
3131
- Ludicrously simple. No need for futures, tasks, etc. Here's the entirety of the day-to-day API:
3232
```python
3333
tinyio.Loop
34-
tinyio.run_in_thread
35-
tinyio.sleep
3634
tinyio.CancelledError
35+
tinyio.sleep
36+
tinyio.run_in_thread
3737
```
3838

3939
## Installation
File renamed without changes.

docs/index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,22 @@ out = loop.run(foo())
3232
assert out == (4, 5)
3333
```
3434

35+
Somewhat unusually, our syntax uses `yield` rather than `await`, but the behaviour is the same. Await another coroutine with `yield coro`. Await on multiple with `yield [coro1, coro2, ...]` (a 'gather' in `asyncio` terminology; a 'nursery' in `trio` terminology).
36+
37+
An error in one coroutine will cancel all coroutines across the entire event loop.
38+
39+
- If the erroring coroutine is sequentially depended on by a chain of other coroutines, then we chain their tracebacks for easier debugging.
40+
- Errors propagate to and from synchronous operations ran in threads.
41+
42+
Can nest `tinyio` loops inside each other, none of this one-per-thread business.
43+
44+
Ludicrously simple. No need for futures, tasks, etc. Here's the entirety of the day-to-day API:
45+
46+
- [`tinyio.Loop`][]
47+
- [`tinyio.CancelledError`][]
48+
- [`tinyio.sleep`][]
49+
- [`tinyio.run_in_thread`][]
50+
3551
## Next steps
3652

3753
Check out the [coroutines and loops](./api/loops.md) page.

mkdocs.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,15 @@ plugins:
9090

9191
nav:
9292
- 'index.md'
93-
- 'error_propagation.md'
93+
- 'api/loops.md'
94+
- 'api/error_propagation.md'
9495
- API:
95-
- 'api/loops.md'
9696
- 'api/sleeping.md'
9797
- 'api/threading.md'
9898
- 'api/synchronisation.md'
9999
- 'api/async_context_managers.md'
100100
- 'api/async_iterators.md'
101101
- 'api/integrations.md'
102102
- 'api/isolate.md'
103-
- 'faq.md'
103+
- Misc:
104+
- 'faq.md'

0 commit comments

Comments
 (0)