Commit Graph

14 Commits

Author SHA1 Message Date
Carl Fredrik Samson
aa0423caaf revised slides in chapter 3. Better descriptions, correction of errors and improved readibility on the small pictures in mdbook 2020-12-22 23:06:26 +01:00
Carl Fredrik Samson
4f4e6be15a updated changelog ref #25 2020-12-21 14:50:39 +01:00
Carl Fredrik Samson
8dfd7f445c updated links to fix #21 2020-12-05 22:11:41 +01:00
Carl Fredrik Samson
786faf4fd9 Removed the explicit call to close and mentioned a bug that can occur
when two tasks is given the same id.

The explicit close call is not needed. We can do that in the `Drop`
implementation instead. It's better to have accounting tasks like this
only one place and it didn't add anything to the example.

There is a subtle bug which occurs if two tasks are given the same Id.
I mentioned this explicitly since it's such an easy thing to do. I
added the fix as a reader excercise since for the examples sake I think
it's better to pass them in explicitly so that we don't "pollute" the
example with more code than strictly needed to get an understanding of
futures.
2020-04-27 00:02:41 +02:00
Carl Fredrik Samson
d9eb756ef7 Added Bonus Section implementing a proper Parker
The problems addressed in the earlier version led to an "incorrect"
example which is bad to pass along after reading a whole book. after
getting some feedback in #2 i decided to show how we can create a
proper `Parker`.

The main example (which I assume most interested readers will copy) now
uses a proper parking thechnique so there should be no more dataraces
left.

I also removed the "Reader Excercise" paragraph suggesting that they
explore a way to implement proper parking since we now show that in
our main example.
2020-04-13 14:16:32 +02:00
Carl Fredrik Samson
32bedb934c several improvements, see #2 for more details 2020-04-10 20:26:41 +02:00
Carl Fredrik Samson
6e7a6bbc8d Update README.md 2020-04-07 01:52:46 +02:00
Carl Fredrik Samson
07cb377fc1 updated readme 2020-04-06 21:13:28 +02:00
Carl Fredrik Samson
92680313ea finished book 2020-02-01 17:23:49 +01:00
Carl Fredrik Samson
e14a8f0743 added build status to readme 2020-01-25 20:24:36 +01:00
Carl Fredrik Samson
5ece5dc585 save 2020-01-25 17:25:06 +01:00
cf
23cebc18bf GitBook: [master] 2 pages modified 2020-01-23 14:17:16 +00:00
cf
0f5b631bc2 GitBook: [master] 2 pages modified 2020-01-23 14:17:01 +00:00
gitbook-bot
fb25cad3d1 Initialize repository 2020-01-23 15:16:57 +01:00