Commit 92c473c
Add some missing customization points to
Summary:
- Explicitly test that you can't await a moved `NowTaskWithExecutor`. The manual test showed the correct "deleted copy ctor" error for this.
- Plumb through `co_withCancellation` so that things like `timeout(nowTaskFn().scheduleOn(ex))` would work.
- Plumb through `unsafeMoveMustAwaitImmediately()` so that generic wrappers (like `Sequence.h` and `Noexcept.h`) can wrap `NowTask`s into other `MustAwaitImmediately` containers.
Reviewed By: ispeters
Differential Revision: D70355306
fbshipit-source-id: 7adae485aa377181947b7d38de1c4da67947cf29NowTaskWithExecutor
1 parent 7aa9b2c commit 92c473c
2 files changed
+51
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
59 | 82 | | |
60 | 83 | | |
61 | 84 | | |
| |||
91 | 114 | | |
92 | 115 | | |
93 | 116 | | |
94 | | - | |
95 | 117 | | |
96 | 118 | | |
97 | 119 | | |
| |||
121 | 143 | | |
122 | 144 | | |
123 | 145 | | |
124 | | - | |
125 | | - | |
126 | 146 | | |
127 | | - | |
| 147 | + | |
128 | 148 | | |
129 | 149 | | |
130 | | - | |
| 150 | + | |
131 | 151 | | |
132 | 152 | | |
133 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
86 | 111 | | |
87 | 112 | | |
88 | 113 | | |
| |||
0 commit comments