Task
Queue
Class
constructor
name
add
execute
execute_
async
execute_
background
execute_
background_
finish
execute_
finish
process
spawn
GJS API Reference
Bump-0.1
Bump
TaskQueueClass
Class TaskQueueClass
Hierarchy
TaskQueueClass
Index
Constructors
constructor
Properties
name
Methods
add
execute
execute_
async
execute_
background
execute_
background_
finish
execute_
finish
process
spawn
Constructors
constructor
new
Task
Queue
Class
(
)
:
TaskQueueClass
Returns
TaskQueueClass
Properties
Static
name
name
:
string
Methods
add
add
(
task
:
SourceFunc
, priority
:
number
, cancellable
?:
Gio
.
Cancellable
)
:
void
Parameters
task:
SourceFunc
priority:
number
Optional
cancellable:
Gio
.
Cancellable
Returns
void
execute
execute
(
g_type
:
GType
<
unknown
>
, g_dup_func
:
BoxedCopyFunc
, g_destroy_func
:
GLib
.
DestroyNotify
, func
:
Bump
.
Callback
, priority
:
number
, cancellable
?:
Gio
.
Cancellable
)
:
object
Parameters
g_type:
GType
<
unknown
>
g_dup_func:
BoxedCopyFunc
g_destroy_func:
GLib
.
DestroyNotify
func:
Bump
.
Callback
priority:
number
Optional
cancellable:
Gio
.
Cancellable
Returns
object
execute_
async
execute_
async
(
g_type
:
GType
<
unknown
>
, g_dup_func
:
BoxedCopyFunc
, g_destroy_func
:
GLib
.
DestroyNotify
, func
:
Bump
.
Callback
, priority
:
number
, cancellable
?:
Gio
.
Cancellable
, _callback_
?:
AsyncReadyCallback
)
:
void
Parameters
g_type:
GType
<
unknown
>
g_dup_func:
BoxedCopyFunc
g_destroy_func:
GLib
.
DestroyNotify
func:
Bump
.
Callback
priority:
number
Optional
cancellable:
Gio
.
Cancellable
Optional
_callback_:
AsyncReadyCallback
Returns
void
execute_
background
execute_
background
(
g_type
:
GType
<
unknown
>
, g_dup_func
:
BoxedCopyFunc
, g_destroy_func
:
GLib
.
DestroyNotify
, func
:
Bump
.
Callback
, priority
:
number
, cancellable
?:
Gio
.
Cancellable
, _callback_
?:
AsyncReadyCallback
)
:
void
Parameters
g_type:
GType
<
unknown
>
g_dup_func:
BoxedCopyFunc
g_destroy_func:
GLib
.
DestroyNotify
func:
Bump
.
Callback
priority:
number
Optional
cancellable:
Gio
.
Cancellable
Optional
_callback_:
AsyncReadyCallback
Returns
void
execute_
background_
finish
execute_
background_
finish
(
g_type
:
GType
<
unknown
>
, g_dup_func
:
BoxedCopyFunc
, g_destroy_func
:
GLib
.
DestroyNotify
, _res_
:
AsyncResult
)
:
object
Parameters
g_type:
GType
<
unknown
>
g_dup_func:
BoxedCopyFunc
g_destroy_func:
GLib
.
DestroyNotify
_res_:
AsyncResult
Returns
object
execute_
finish
execute_
finish
(
g_type
:
GType
<
unknown
>
, g_dup_func
:
BoxedCopyFunc
, g_destroy_func
:
GLib
.
DestroyNotify
, _res_
:
AsyncResult
)
:
object
Parameters
g_type:
GType
<
unknown
>
g_dup_func:
BoxedCopyFunc
g_destroy_func:
GLib
.
DestroyNotify
_res_:
AsyncResult
Returns
object
process
process
(
wait
:
number
)
:
boolean
Parameters
wait:
number
Returns
boolean
spawn
spawn
(
max
:
number
)
:
number
Parameters
max:
number
Returns
number
Task
Queue
Class
constructor
name
add
execute
execute_
async
execute_
background
execute_
background_
finish
execute_
finish
process
spawn
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJCdW1wXzBfMS5CdW1wLlRhc2tRdWV1ZUNsYXNzLmh0bWwjY29uc3RydWN0b3IiLCJuYW1lIjoiY29uc3RydWN0b3IiLCJjaGlsZHJlbiI6W10sImlzRXh0ZXJuIjpmYWxzZSwiaXNJbnRlcm4iOnRydWV9LHsiY2xhc3NOYW1lcyI6InRzZC1raW5kLXByb3BlcnR5IHRzZC1wYXJlbnQta2luZC1jbGFzcyB0c2QtaXMtc3RhdGljIiwiaHJlZiI6IkJ1bXBfMF8xLkJ1bXAuVGFza1F1ZXVlQ2xhc3MuaHRtbCNuYW1lIiwibm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