How can I branch out multiple API calls from the result of one API call and collect them after all are finished with Combine?
问题 So, I have this sequence of API calls, where I fetch a employee details, then fetch the company and project details that the employee is associated with. After both fetching are complete, I combine both and publish a fetchCompleted event. I've isolated the relevant code below. func getUserDetails() -> AnyPublisher<UserDetails, Error> func getCompanyDetails(user: UserDetails) -> AnyPublisher<CompanyDetails, Error> func getProjectDetails(user: UserDetails) -> AnyPublisher<ProjectDetails, Error>