Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Version used: 1.1.0-alpha02
Devices/Android versions reproduced on: emulator
The future returned by runFuture is not cancellable, since it doesn't propogate that cancel to the coroutineScope.
```
private fun <T> runForFuture(
fn: suspend (TileProvider) -> T
): ListenableFuture<T> {
val future = ResolvableFuture.create<T>()
coroutineScope.launch(coroutineDispatcher) {
try {
withTimeout(TIMEOUT_MILLIS) {
connectionBinder.runWithTilesConnection {
future.set(fn(it))
}
}
} catch (ex: Exception) {
future.setException(ex)
}
}
return future
}
```