Skip to content

Provide ExecutorService.asCoroutineDispatcher that returns a closeable dispatcher #278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
elizarov opened this issue Mar 12, 2018 · 0 comments

Comments

@elizarov
Copy link
Contributor

This issue in inspired by this SO question: https://stackoverflow.com/questions/49217668/shut-down-the-underlying-executor-of-executorcoroutinedispatcher

The idea is to provide ExecutorService.asCoroutineDispatcher extension in addition to Executor.asCoroutineDispatcher that would return a subclass of CoroutineDispatcher that also implements Closeable interface and delegates close to shutdown of the underlying ExecutorService.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant