File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -455,8 +455,8 @@ const zodIpc = new ZodIpcConnection({
455455 FLUSH : async ( { timeoutInMs } , sender ) => {
456456 await flushAll ( timeoutInMs ) ;
457457 } ,
458- WAITPOINT_COMPLETED : async ( { waitpoint } ) => {
459- sharedWorkerRuntime . completeWaitpoints ( [ waitpoint ] ) ;
458+ RESOLVE_WAITPOINT : async ( { waitpoint } ) => {
459+ sharedWorkerRuntime . resolveWaitpoints ( [ waitpoint ] ) ;
460460 } ,
461461 } ,
462462} ) ;
Original file line number Diff line number Diff line change @@ -448,8 +448,8 @@ const zodIpc = new ZodIpcConnection({
448448 FLUSH : async ( { timeoutInMs } , sender ) => {
449449 await flushAll ( timeoutInMs ) ;
450450 } ,
451- WAITPOINT_COMPLETED : async ( { waitpoint } ) => {
452- sharedWorkerRuntime . completeWaitpoints ( [ waitpoint ] ) ;
451+ RESOLVE_WAITPOINT : async ( { waitpoint } ) => {
452+ sharedWorkerRuntime . resolveWaitpoints ( [ waitpoint ] ) ;
453453 } ,
454454 } ,
455455} ) ;
Original file line number Diff line number Diff line change @@ -146,12 +146,12 @@ export class SharedRuntimeManager implements RuntimeManager {
146146 } ) ;
147147 }
148148
149- async completeWaitpoints ( waitpoints : CompletedWaitpoint [ ] ) : Promise < void > {
150- await Promise . all ( waitpoints . map ( ( waitpoint ) => this . completeWaitpoint ( waitpoint ) ) ) ;
149+ async resolveWaitpoints ( waitpoints : CompletedWaitpoint [ ] ) : Promise < void > {
150+ await Promise . all ( waitpoints . map ( ( waitpoint ) => this . resolveWaitpoint ( waitpoint ) ) ) ;
151151 }
152152
153- private completeWaitpoint ( waitpoint : CompletedWaitpoint ) : void {
154- this . log ( "completeWaitpoint " , waitpoint ) ;
153+ private resolveWaitpoint ( waitpoint : CompletedWaitpoint ) : void {
154+ this . log ( "resolveWaitpoint " , waitpoint ) ;
155155
156156 let waitId : string | undefined ;
157157
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ export const WorkerToExecutorMessageCatalog = {
225225 } ) ,
226226 callback : z . void ( ) ,
227227 } ,
228- WAITPOINT_COMPLETED : {
228+ RESOLVE_WAITPOINT : {
229229 message : z . object ( {
230230 version : z . literal ( "v1" ) . default ( "v1" ) ,
231231 waitpoint : CompletedWaitpoint ,
You can’t perform that action at this time.
0 commit comments