bow-swift / bow

🏹 Bow is a cross-platform library for Typed Functional Programming in Swift
https://bow-swift.io
Other
643 stars 32 forks source link

Queue sync operation #597

Closed miguelangel-dev closed 4 years ago

miguelangel-dev commented 4 years ago

Details

Remove insecure code in Queue.

Changes:

  1. sync work: in case of unknown thread, we will run work in a given queue.
  2. DispatchQueue.currentLabel gives you a random value.

BowEffectsLaws guarantees we are using the Queue constructors (internally in the lib)