Skip to content

Commit a7f6865

Browse files
committed
added some potential ideas for ch11
1 parent 10f8682 commit a7f6865

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ch11/NOTES.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Thoughts
2+
3+
- After converting to std::future::Future which is not much work:
4+
- Implement server.rs with a simple listen function
5+
- Can only accept delay requests like the ones we make
6+
- Implement a simple timer reactor using
7+
- A thread
8+
- Veddeque to store timers/wakers
9+
- thread::park_timeout() / thread unpark to add new/wake up and call wake once a timer has expired
10+
11+
We now have a client and server running our own async runtime single threaded. How many "threads" can we achieve? More than OS threads on a sinlge thread?
12+
13+
Or is this too much work for readers to do?

0 commit comments

Comments
 (0)