Effect CommunityEC
Effect Community3y ago
3 replies
Patrick Roza

Implementing Semaphore with Time-Limited Permit Release

I was implementing a Semaphore withPermit which races the effect, or a time of 150ms, to release the permit again.
I wanted to make sure not to double release. so I realised I can just use sem.release(1).cached()
Was this page helpful?