Semaphore.hx 221 B

12345678
  1. package python.lib.threading;
  2. @:pythonImport("threading", "Semaphore")
  3. extern class Semaphore {
  4. function new(value:Int);
  5. function acquire(blocking:Bool = true, ?timeout:Float):Bool;
  6. function release(n:Int = 1):Void;
  7. }