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

feat(lib): change custom executors to be Fn #2015

Closed
wants to merge 1 commit into from
Closed

Conversation

seanmonstar
Copy link
Member

Instead of custom executors needing to be tokio::Executor or
tokio::TypedExecutor, they are now just Fns.

BREAKING CHANGE: Configuring an executor for a client or server should
now pass a closure or function to spawn the future.

Closes #1944

Instead of custom executors needing to be `tokio::Executor` or
`tokio::TypedExecutor`, they are now just `Fn`s.

BREAKING CHANGE: Configuring an `executor` for a client or server should
  now pass a closure or function to spawn the future.

Closes #1944
@seanmonstar
Copy link
Member Author

seanmonstar commented Dec 4, 2019

A closure frequently couldn't be used since the executor needed to be able to be passed different future types. New solution in #2032

@seanmonstar seanmonstar closed this Dec 4, 2019
@seanmonstar seanmonstar deleted the un-exec branch December 4, 2019 19:20
@LucioFranco
Copy link
Member

@seanmonstar btw that points to the same PR?

@seanmonstar
Copy link
Member Author

Woops, fixed XD

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

Successfully merging this pull request may close these issues.

Client builder's executor setter is confusing for new tokio 0.2 alpha
2 participants