You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ability to create an already completed Task with something like Task::completed(...).
This would serve as a way to mock asynchronous functionality with synchronous code.
My specific use case is an interface which has to return a Task, but the actual code doesn't have a way to create said Task.
(I don't think this solution can be called sound, but it is what it is) source
This is very much inspired by C#.
The text was updated successfully, but these errors were encountered:
Ability to create an already completed
Task
with something likeTask::completed(...)
.This would serve as a way to mock asynchronous functionality with synchronous code.
My specific use case is an interface which has to return a
Task
, but the actual code doesn't have a way to create saidTask
.(I don't think this solution can be called sound, but it is what it is)
source
This is very much inspired by C#.
The text was updated successfully, but these errors were encountered: