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
constabortController=newAbortController();const{signal: abortSignal}=abortController;varpromise=longCompute(abortSignal);// Get a Promise from KotlinabortController.abort();// Won't work// Workaround: await just a bit so the promise Kotlin is actually created and listen the `onabort`awaitnewPromise((resolve)=>{setTimeout(resolve,0);});abortController.abort();// Works
The first call to abort() should work.
The text was updated successfully, but these errors were encountered:
The first call to abort() should work.
The text was updated successfully, but these errors were encountered: