Skip to content

Instantly share code, notes, and snippets.

@eunjin3786
Last active June 28, 2019 05:35
Show Gist options
  • Save eunjin3786/487745cc77b9587f998f6d694150a954 to your computer and use it in GitHub Desktop.
Save eunjin3786/487745cc77b9587f998f6d694150a954 to your computer and use it in GitHub Desktop.
let jsonPublisher = MyJSONLoaderPublisher() // Some publisher.
let labelUpdater = MyLabelUpdateSubscriber() // Some subscriber that updates UI
jsonPublisher
.subscribe(on: backgroundQueue)
.receiveOn(on: RunLoop.main)
.subscribe(labelUpdater)
// 출처 : https://developer.apple.com/documentation/combine/publishers/prefixuntiloutput/3210286-receive?changes=_4_2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment