We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3049c8 commit af883c5Copy full SHA for af883c5
1 file changed
internal-packages/run-engine/src/engine/systems/waitpointSystem.ts
@@ -15,6 +15,7 @@ import { EnqueueSystem } from "./enqueueSystem.js";
15
import { ExecutionSnapshotSystem, getLatestExecutionSnapshot } from "./executionSnapshotSystem.js";
16
import { SystemResources } from "./systems.js";
17
import { ReleaseConcurrencySystem } from "./releaseConcurrencySystem.js";
18
+import { assertNever } from "assert-never";
19
20
export type WaitpointSystemOptions = {
21
resources: SystemResources;
@@ -719,9 +720,7 @@ export class WaitpointSystem {
719
720
break;
721
}
722
default: {
- throw new Error(
723
- `continueRunIfUnblocked: invalid execution status: ${snapshot.executionStatus}`
724
- );
+ assertNever(snapshot.executionStatus);
725
726
727
0 commit comments