GLib.CancellableSource – gio-2.0 Reference Manual
Packages
gio-2.0
GLib
CancellableSource
CancellableSource
set_callback
CancellableSource
Object Hierarchy:
Description:
[
CCode
( cname =
"GSource"
, ref_function =
"g_source_ref"
, unref_function =
"g_source_unref"
) ]
[
Compact
]
public
class
CancellableSource
:
Source
Namespace:
GLib
Package:
gio-2.0
Content:
Creation methods:
public
CancellableSource
(
Cancellable
? cancellable)
Creates a source that triggers if
this
is cancelled and calls its callback of type
CancellableSourceFunc
.
Methods:
public
void
set_callback
(
owned
CancellableSourceFunc
func)
Inherited Members:
All known members inherited from class GLib.Source
CONTINUE
REMOVE
add_child_source
add_poll
add_unix_fd
attach
check
destroy
dispatch
get_can_recurse
get_context
get_current_time
get_id
get_name
get_priority
get_ready_time
get_time
is_destroyed
modify_unix_fd
prepare
query_unix_fd
remove
remove_by_funcs_user_data
remove_by_user_data
remove_child_source
remove_poll
remove_unix_fd
set_callback
set_callback_indirect
set_can_recurse
set_dispose_function
set_funcs
set_name
set_name_by_id
set_priority
set_ready_time
set_static_name