Skip to content

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