Skip to content

Instantly share code, notes, and snippets.

@eunjin3786
Created June 28, 2019 05:50
Publishers.Just(1)
.subscribe(on: backgroundQueue)
.map { _ in
print(Thread.isMainThread) // false
}
.map { _ in
print(Thread.isMainThread) // false
}.sink {
print(Thread.isMainThread) // false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment