Skip to content

Instantly share code, notes, and snippets.

@Nillerr
Created May 20, 2021 19:54
Show Gist options
  • Save Nillerr/6ef2adc88d1fed0af90499084709bdf3 to your computer and use it in GitHub Desktop.
Save Nillerr/6ef2adc88d1fed0af90499084709bdf3 to your computer and use it in GitHub Desktop.
collect(taskService.tasks)
.completeOnFailure()
.sink { [weak self] tasks in
print("Received \(tasks.count) tasks")
}
.store(in: &subscriptions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment