In Java, the returned Future can be cancelled and this should interrupt the executing thread causing any blocking I/O to return early.
However there is no such mechanism in JavaScript and C++. JavaScript currently only tries to release interrupt any locks, and C++'s future does not support aborting. Consider defining Url.abort() to support this operation—something additional will also need to be done for C++ to expose access to a future.abort().
In Java, the returned
Futurecan be cancelled and this should interrupt the executing thread causing any blocking I/O to return early.However there is no such mechanism in JavaScript and C++. JavaScript currently only tries to release interrupt any locks, and C++'s
futuredoes not support aborting. Consider definingUrl.abort()to support this operation—something additional will also need to be done for C++ to expose access to afuture.abort().