(data: PlatformMessage)
| 204 | port, |
| 205 | scope, |
| 206 | emit(data: PlatformMessage) { |
| 207 | if (data[0] === 0) { |
| 208 | if (opts?.onSpawn) { |
| 209 | run(Effect.ensuring(opts.onSpawn, ready.open)) |
| 210 | } else { |
| 211 | ready.openUnsafe() |
| 212 | } |
| 213 | return |
| 214 | } |
| 215 | run(handler(data[1] as O)) |
| 216 | }, |
| 217 | deferred: fiberSet.deferred as any |
| 218 | }) |
| 219 | yield* ready.await |
nothing calls this directly
no test coverage detected