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

Improve multiple task handling (Task.all/any/some) in case of empty tasks-argument #60

Merged
merged 1 commit into from
Mar 19, 2016

Conversation

inamiy
Copy link
Member

@inamiy inamiy commented Mar 19, 2016

This is an improvement for multiple task handling (Task.all/any/some) to also work for empty tasks case as discussed in #59.

For compatibility, Task.any is using precondition instead to warn users not to pass empty array from the beginning.
(For better typing, we need different signature e.g. public class func any(tasks: [Task]) -> Task<BulkProgress, Value?, Error>)

inamiy added a commit that referenced this pull request Mar 19, 2016
…y-case

Improve multiple task handling (`Task.all`/`any`/`some`) in case of empty `tasks`-argument
@inamiy inamiy merged commit 15aa6bf into swift/2.0 Mar 19, 2016
@inamiy inamiy deleted the multiple-task-handling-with-empty-case branch March 19, 2016 08:21
@inamiy inamiy added this to the 4.2.1 milestone Mar 19, 2016
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.

1 participant