Adam Brodziak
1 min readNov 17, 2018

--

Clever solution to delaying object creation, so we won’t waste CPU and RAM resources for duplicates. However what I don’t like is the predefined delay — essentially all the requests that hit semaphore (but no instance) will be delayed by 1000 milliseconds. In some cases it’s OK, but in others it might not be acceptable. No perfect solution still.

--

--