Semaphore
Class
constructor
name
claim
claim_
async
claim_
finish
GJS API Reference
Bump-0.1
Bump
SemaphoreClass
Class SemaphoreClass
Hierarchy
SemaphoreClass
Index
Constructors
constructor
Properties
name
Methods
claim
claim_
async
claim_
finish
Constructors
constructor
new
Semaphore
Class
(
)
:
SemaphoreClass
Returns
SemaphoreClass
Properties
Static
name
name
:
string
Methods
claim
claim
(
priority
:
number
, cancellable
?:
Gio
.
Cancellable
)
:
SemaphoreClaim
Parameters
priority:
number
Optional
cancellable:
Gio
.
Cancellable
Returns
SemaphoreClaim
claim_
async
claim_
async
(
priority
:
number
, cancellable
?:
Gio
.
Cancellable
, _callback_
?:
AsyncReadyCallback
)
:
void
Parameters
priority:
number
Optional
cancellable:
Gio
.
Cancellable
Optional
_callback_:
AsyncReadyCallback
Returns
void
claim_
finish
claim_
finish
(
_res_
:
AsyncResult
)
:
SemaphoreClaim
Parameters
_res_:
AsyncResult
Returns
SemaphoreClaim
Semaphore
Class
constructor
name
claim
claim_
async
claim_
finish
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJCdW1wXzBfMS5CdW1wLlNlbWFwaG9yZUNsYXNzLmh0bWwjY29uc3RydWN0b3IiLCJuYW1lIjoiY29uc3RydWN0b3IiLCJjaGlsZHJlbiI6W10sImlzRXh0ZXJuIjpmYWxzZSwiaXNJbnRlcm4iOnRydWV9LHsiY2xhc3NOYW1lcyI6InRzZC1raW5kLXByb3BlcnR5IHRzZC1wYXJlbnQta2luZC1jbGFzcyB0c2QtaXMtc3RhdGljIiwiaHJlZiI6IkJ1bXBfMF8xLkJ1bXAuU2VtYXBob3JlQ2xhc3MuaHRtbCNuYW1lIiwibmFtZSI6Im5hbWUiLCJjaGlsZHJlbiI6W10sImlzRXh0ZXJuIjpmYWxzZSwiaXNJbnRlcm4iOnRydWV9LHsiY2xhc3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