FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Improve multiple task handling (`Task.all`/`any`/`some`) in case of empty `tasks`-argument by inamiy · Pull Request #60 · ReactKit/SwiftTask · GitHub

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

Merged
inamiy merged 1 commit into
swift/2.0from
multiple-task-handling-with-empty-case
Mar 19, 2016
Merged

Improve multiple task handling (Task.all/any/some) in case of empty tasks-argument#60
inamiy merged 1 commit into
swift/2.0from
multiple-task-handling-with-empty-case

Conversation

inamiy commented Mar 19, 2016

Copy link
Copy Markdown
Member

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 merged commit 15aa6bf into swift/2.0 Mar 19, 2016
inamiy deleted the multiple-task-handling-with-empty-case branch March 19, 2016 08:21
inamiy added this to the 4.2.1 milestone Mar 19, 2016
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL