Semaphore.hx 229 B

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