Commit 69ff8ab
committed
test(phase-c): move Test A polling into Effect, drop nested runPromise
Addresses Copilot PR review (partial). Keeps `fiber.pollUnsafe()` — it is
public API and the correct synchronous peek for early-exit detection — but
lifts the poll loop out of `Effect.promise` and into `Effect.gen` so the
`sessionStatus.get` call no longer needs a nested `Effect.runPromise`.
Copilot's suggested `Effect.raceFirst(Effect.fnUntraced(...), ...)` snippet
does not typecheck (`fnUntraced` returns a function, not an Effect), so the
literal suggestion was not applied.1 parent 6254b3b commit 69ff8ab
1 file changed
Lines changed: 12 additions & 9 deletions
Lines changed: 12 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
254 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
255 | 258 | | |
256 | 259 | | |
257 | 260 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
| 261 | + | |
| 262 | + | |
262 | 263 | | |
263 | | - | |
| 264 | + | |
264 | 265 | | |
265 | | - | |
266 | | - | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
267 | 270 | | |
268 | 271 | | |
269 | 272 | | |
| |||
0 commit comments