You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AbortSignal became available in Node in versions 15/17ish, which can simplify wrappers around methods which may need to be cancelled/aborted/timed out.
AbortSignal became available in Node in versions 15/17ish, which can simplify wrappers around methods which may need to be cancelled/aborted/timed out.
Tidy up logic in https://github.com/cianmawhinney/visca-camera-controller/blob/master/src/camera.js#L767-L813 by using an
AbortSignal
instead of thePromise.race
.Documentation for AbortSignal: https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal#implementing_an_abortable_api
(I came across AbortSignal from this tweet: https://twitter.com/goenning/status/1781290404211814903)
The text was updated successfully, but these errors were encountered: