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.

--

Father. Husband. Solutions developer profesionally (software quite often). Arsenal supporter. Cyclist.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adam Brodziak

Adam Brodziak

154 Followers

Father. Husband. Solutions developer profesionally (software quite often). Arsenal supporter. Cyclist.