Skip to content

Commit

Permalink
feat(comms): WUQuery support abort signal
Browse files Browse the repository at this point in the history
add optional abortSignal to the parameters of WUQuery

Signed-off-by: Jeremy Clements <[email protected]>
  • Loading branch information
jeclrsg committed Sep 11, 2024
1 parent c61a8ab commit c9db1db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/comms/src/services/wsWorkunits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ export class WorkunitsService extends WorkunitsServiceBase {
});
}

WUQuery(request: Partial<WsWorkunits.WUQuery> = {}): Promise<WsWorkunits.WUQueryResponse> {
return super.WUQuery(request).then((response) => {
WUQuery(request: Partial<WsWorkunits.WUQuery> = {}, abortSignal?: AbortSignal): Promise<WsWorkunits.WUQueryResponse> {
return this._connection.send("WUQuery", request, "json", false, abortSignal).then((response) => {
return deepMixin({ Workunits: { ECLWorkunit: [] } }, response);
});
}
Expand Down

0 comments on commit c9db1db

Please sign in to comment.