def init(self, permits):
check_not_negative(permits, "<STR_LIT>")<EOL>return self._encode_invoke(semaphore_init_codec, permits=permits)<EOL>
Try to initialize this Semaphore instance with the given permit count.

:param permits: (int), the given permit count.
:return: (bool), ``true`` if initialization success.