Function Semaphore.wait

Tries to wait for the Semaphore, if its value is zero, blocks until non-zero. Returns constant OK on success, constant ERR_BUSY otherwise.

godot.core.defs.GodotError wait() nothrow @nogc;