-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
88 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,61 @@ | ||
============ | ||
start | ||
1: wait for subs | ||
1.0.0: await fiber 0 | ||
1.0.1: cur fiber[0] is some: true | ||
1.0.2: cur fiber[0] is some: true | ||
1.0.3: res 0 = 0 | ||
1.1.0: await fiber 1 | ||
1.1.1: cur fiber[1] is some: true | ||
1.1.2: cur fiber[1] is some: true | ||
1.1.3: res 1 = 1 | ||
1.2.0: await fiber 2 | ||
1.2.1: cur fiber[2] is some: true | ||
1.2.2: cur fiber[2] is some: true | ||
1.2.3: res 2 = 2 | ||
1.3.0: await fiber 3 | ||
1.3.1: cur fiber[3] is some: true | ||
1.3.2: cur fiber[3] is some: true | ||
1.3.3: res 3 = 3 | ||
1.4.0: await fiber 4 | ||
1.4.1: cur fiber[4] is some: true | ||
1.4.2: cur fiber[4] is some: true | ||
1.4.3: res 4 = 4 | ||
2: main fiber done | ||
3: other fib done | ||
4: main fiber exited | ||
wait for subs | ||
await fiber 0 | ||
cur fiber[0] is some: true | ||
cur fiber[0] is some: true | ||
res 0 = 0 | ||
await fiber 1 | ||
cur fiber[1] is some: true | ||
cur fiber[1] is some: true | ||
res 1 = 1 | ||
await fiber 2 | ||
cur fiber[2] is some: true | ||
cur fiber[2] is some: true | ||
res 2 = 2 | ||
await fiber 3 | ||
cur fiber[3] is some: true | ||
cur fiber[3] is some: true | ||
res 3 = 3 | ||
await fiber 4 | ||
cur fiber[4] is some: true | ||
cur fiber[4] is some: true | ||
res 4 = 4 | ||
main fiber done | ||
main fiber exited | ||
============ | ||
start | ||
1: start fibers | ||
1.7.1: I'm fiber 7 and I'm about to fail… | ||
1.8.1: sub-fiber 8 was cancelled | ||
1.9.1: sub-fiber 9 was cancelled | ||
2.0: fiber 0 resolved as ok | ||
2.1: fiber 1 resolved as ok | ||
2.2: fiber 2 resolved as ok | ||
2.3: fiber 3 resolved as ok | ||
2.4: fiber 4 resolved as ok | ||
2.5: fiber 5 resolved as ok | ||
2.6: fiber 6 resolved as ok | ||
2.7: fiber 7 resolved as error | ||
2.8: fiber 8 resolved as error | ||
2.9: fiber 9 resolved as error | ||
3: wait for subs | ||
4: await fiber 0 | ||
5: res 0 = 0 | ||
6: await fiber 1 | ||
7: res 1 = 1 | ||
8: await fiber 2 | ||
9: res 2 = 2 | ||
10: await fiber 3 | ||
11: res 3 = 3 | ||
12: await fiber 4 | ||
13: res 4 = 4 | ||
14: await fiber 5 | ||
15: res 5 = 5 | ||
16: await fiber 6 | ||
17: res 6 = 6 | ||
18: await fiber 7 | ||
19: main fiber cancelled with Failure("oh no!") | ||
20: main fiber result: error Failure("oh no!") | ||
21: main fib failed with "oh no!" | ||
22: main fiber exited | ||
start fibers | ||
wait for subs | ||
await fiber 0 | ||
fiber 0 resolved as ok | ||
res 0 = 0 | ||
await fiber 1 | ||
fiber 1 resolved as ok | ||
res 1 = 1 | ||
await fiber 2 | ||
res 2 = 2 | ||
await fiber 3 | ||
fiber 2 resolved as ok | ||
fiber 3 resolved as ok | ||
fiber 4 resolved as ok | ||
res 3 = 3 | ||
await fiber 4 | ||
res 4 = 4 | ||
await fiber 5 | ||
fiber 5 resolved as ok | ||
res 5 = 5 | ||
await fiber 6 | ||
fiber 6 resolved as ok | ||
res 6 = 6 | ||
await fiber 7 | ||
I'm fiber 7 and I'm about to fail… | ||
fiber 7 resolved as error | ||
sub-fiber 8 was cancelled | ||
fiber 8 resolved as error | ||
sub-fiber 9 was cancelled | ||
fiber 9 resolved as error | ||
main fiber cancelled with Failure("oh no!") | ||
main fiber result: error Failure("oh no!") | ||
main fib failed with "oh no!" | ||
main fiber exited |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters