user310291
user310291

Reputation: 38228

Does NSNotification somehow use threads internally?

NSNotification is non-blocking call. Does it mean it runs threads internally somehow ? If not what happens actually: when observer receives the event it executes the handler then the observee continues ? In that case non-blocking is actually fake ?

Upvotes: 0

Views: 61

Answers (1)

StilesCrisis
StilesCrisis

Reputation: 16300

I am not 100% sure but I believe it is directly tied into the event loop handling code. I don't think it spins up a thread.

Upvotes: 1

Related Questions