Closed
Description
would be great to have a zip function that takes two tasks with different progress, value and error types and returns a task that returns a tuple of values.
I've implemented the function with the signature
public class func zip<P1, V1, R1, P2, V2, R2>(task1: Task<P1, V1, R1>, _ task2: Task<P2, V2, R2>) -> Task<(P1, P2), (V1, V2), (R1?, R2?)>
but unfortunately I'm unable to call it without the error:
Cannot invoke 'zip' with an argument list of type '(Task<Void, String, String>, Task<Void, String, String>)'
Metadata
Metadata
Assignees
Labels
No labels