Skip to content
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

Allow to create view with limited threads count(Experimental dispatcher). #475

Closed
e5l opened this issue Aug 3, 2018 · 2 comments
Closed

Comments

@e5l
Copy link
Member

e5l commented Aug 3, 2018

Consider the following use case:

val client = HttpClient(threads = 2)
val server = HttpServer(threads = 6)

class HttpClient(threads: Int) {
    val dispatcher = DefaultDispatcher.limited(threads)
}
...
@elizarov
Copy link
Contributor

elizarov commented Aug 3, 2018

This is related to #261. We need to provide ability to create thread-limited blocking and non-blocking dispatchers. It does not see that the corresponding function need to be prefixed with DefaultDispatcher. Since it is a default, some top-level functions shoud do just fine.

@qwwdfsad
Copy link
Member

I've introduced a corresponding API for the experimental dispatcher.
Top-level functions (or members of DefaultDispatcher) will be introduced along with #261

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

3 participants