Documentation for method try_acquire assembled from the following pages:
Class: Semaphore §
From Semaphore
(Semaphore) method try_acquire §
method try_acquire(--> Bool)
Same as acquire but will not block. Instead it returns True if access is permitted or False otherwise.