-
Notifications
You must be signed in to change notification settings - Fork 752
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
Add an overload for ToAsyncEnumerable that takes a custom TaskScheduler #297
Comments
@krs500 can you give an example of how this is hard to control/test? For the most part we're using |
I just realized that in v3.1.0, the In v3.0.0, it uses You're right that it makes no sense to use schedulers for In my scenario, I use a custom task scheduler that queues the tasks to run on a specific "working" thread, instead of the .NET thread pool (which is a default behavior of |
cc @onovotny for feels on ☝️ |
@krs500 I responded here... |
Although As for the questions posted above, no, that doesn't help. |
Closing due to age. Please open a new issue based on the 4.0 preview behavior and functionality if needed. |
Current implementation of
AsyncEnumerable.ToAsyncEnumerable<TSource>(this IEnumerable<TSource> source)
does not allow you to pass a customTaskScheduler
, thus, it provides no control on how the tasks are scheduled.It would be nice to have an overload that takes a
TaskScheduler
(or maybe even aTaskFactory<bool>
) as a parameter.The text was updated successfully, but these errors were encountered: