Namespace
Dex – 1
A GNOME library for deferred execution
Dependencies
| GLib—2.0 | The base type system library |
| Browse documentation | |
| GObject—2.0 | The base type system library |
| Browse documentation | |
| GioUnix—2.0 | GIO UNIX-specific APIs |
| Browse documentation |
Classes
| AsyncPair | |
| AsyncResult |
|
| Block |
|
| Cancellable |
|
| Channel | |
| Coroutine |
|
| Deferred |
A future whose work starts when another future observes it, such as through
unstable since: 1.3 |
| Delayed |
|
| Fiber |
|
| Future |
|
| FutureListModel |
This class provides a since: 1.1 |
| FutureSet |
|
| Generator |
A pull-driven sequence of futures. Ordinary generators transfer each future directly to the caller without observing it. Sequential consumers finish each pull before requesting another and check exhaustion after awaiting the pull. unstable since: 1.3 |
| Limiter |
since: 1.2 |
| MainScheduler |
|
| Object |
|
| Promise |
|
| Scheduler |
|
| StateMachine |
|
| StaticFuture |
|
| TaskGroup |
A structured scope for related since: 1.2 |
| ThreadPool |
since: 1.2 |
| ThreadPoolScheduler |
|
| Timeout |
|
| UnixSignal |
|
Structs
| AioContext | |
| AsyncPairInfo | |
| CoroutineContext | |
| GraphBuilder |
Collects futures and the dependencies between them before building a graph. unstable since: 1.3 |
| GraphNode | |
| StateTransition |
Describes one supported transition edge in a |
| StateTransitionContext |
since: 1.2 |
Callbacks
| CoroutineFunc |
This function prototype is used for spawning stackless coroutines. |
| DeferredFunc |
Called on the scheduler selected at construction when the deferred future is first observed. unstable since: 1.3 |
| FiberFunc |
This function prototype is used for spawning fibers. A fiber
is a lightweight, cooperative-multitasking feature where the
fiber is given its own stack. The fiber runs until it reaches
a point of suspension (using |
| FutureCallback |
A |
| GeneratorFunc |
Produces the next future in the calling context, without observing it. unstable since: 1.3 |
| SchedulerFunc | |
| StateTransitionFunc |
Callback used to execute a transition edge. |
| ThreadFunc |
A function which will be run on a dedicated thread. since: 1.0 |
Functions
| aio_close |
An asynchronous since: 1.2 |
| aio_open |
An asynchronous since: 1.2 |
| aio_read |
An asynchronous |
| aio_write |
An asynchronous |
| app_info_get_default_for_type |
Wraps since: 1.2 |
| app_info_get_default_for_uri_scheme |
Wraps since: 1.2 |
| app_info_launch_default_for_uri |
Wraps since: 1.2 |
| app_info_launch_uris |
Wraps since: 1.2 |
| async_initable_init |
A helper for since: 1.0 |
| async_initable_new |
Creates and asynchronously initializes a new object. since: 1.2 |
| buffered_input_stream_fill |
Wraps since: 1.2 |
| bus_get |
Wrapper for since: 0.4 |
| bus_own_name_on_connection |
Wrapper for since: 1.1 |
| data_input_stream_read_line |
Reads a line from the data input stream. since: 1.1 |
| data_input_stream_read_line_utf8 |
Reads a UTF-8 line from the data input stream. since: 1.2 |
| data_input_stream_read_upto |
Reads data from the stream until one of since: 1.2 |
| dbus_connection_call |
Wrapper for since: 0.4 |
| dbus_connection_call_with_unix_fd_list |
Wrapper for since: 0.4 |
| dbus_connection_close |
Asynchronously closes a connection. since: 1.0 |
| dbus_connection_send_message_with_reply |
Wrapper for since: 0.4 |
| dtls_connection_close |
Wraps since: 1.2 |
| dtls_connection_handshake |
Wraps since: 1.2 |
| dtls_connection_shutdown |
Wraps since: 1.2 |
| error_quark | |
| fd_watch |
Creates a new GSource that will fire when since: 1.1 |
| file_append_to |
Wraps since: 1.2 |
| file_copy |
Asynchronously copies a file and returns a |
| file_copy_with_progress |
Wraps since: 1.2 |
| file_create |
Wraps since: 1.1 |
| file_create_readwrite |
Wraps since: 1.2 |
| file_delete |
Asynchronously deletes a file and returns a |
| file_enumerate_children | |
| file_enumerator_close |
Wraps since: 1.2 |
| file_enumerator_next_files |
Wraps |
| file_find_enclosing_mount |
Wraps since: 1.2 |
| file_get_contents_bytes |
Reads a file asynchronously into a unstable since: 1.3 |
| file_input_stream_query_info |
Wraps since: 1.2 |
| file_io_stream_query_info |
Wraps since: 1.2 |
| file_load_bytes |
Wraps since: 1.2 |
| file_load_contents_bytes | |
| file_load_partial_contents_bytes |
Wraps since: 1.2 |
| file_make_directory |
Asynchronously creates a directory and returns |
| file_make_directory_with_parents |
Creates a directory at since: 1.0 |
| file_make_symbolic_link |
Wraps since: 1.2 |
| file_move | |
| file_new_tmp_dir |
Wraps since: 1.2 |
| file_open_readwrite |
Wraps since: 1.2 |
| file_output_stream_query_info |
Wraps since: 1.2 |
| file_query_default_handler |
Wraps since: 1.2 |
| file_query_exists |
Queries to see if since: 0.6 |
| file_query_file_type | |
| file_query_filesystem_info |
Wraps since: 1.2 |
| file_query_info | |
| file_read |
Asynchronously opens a file for reading. |
| file_replace |
Opens a stream that will replace |
| file_replace_contents |
Wraps since: 1.2 |
| file_replace_contents_bytes |
Wraps |
| file_replace_readwrite |
Wraps since: 1.2 |
| file_set_attributes |
since: 1.0 |
| file_set_display_name |
Wraps since: 1.2 |
| file_test |
Tests unstable since: 1.3 |
| file_trash |
Wraps since: 1.2 |
| find_program_in_path |
Locates the first executable named program in the user’s path. since: 1.1 |
| get_major_version |
Gets the major version number equivalent to since: 1.1 |
| get_micro_version |
Gets the micro version number equivalent to since: 1.1 |
| get_min_stack_size | |
| get_minor_version |
Gets the minor version number equivalent to since: 1.1 |
| get_page_size | |
| init | |
| input_stream_close | |
| input_stream_read |
Reads |
| input_stream_read_bytes |
Reads |
| input_stream_skip | |
| io_stream_close | |
| io_stream_splice |
Wraps since: 1.2 |
| mkdir_with_parents |
Similar to since: 1.1 |
| network_monitor_can_reach |
Wraps since: 1.2 |
| output_stream_close | |
| output_stream_flush |
Wraps since: 1.2 |
| output_stream_splice | |
| output_stream_write | |
| output_stream_write_bytes |
Writes |
| output_stream_writev_all |
Writes all bytes in since: 1.2 |
| param_spec_object |
Creates a new since: 1.2 |
| permission_acquire |
Wraps since: 1.2 |
| permission_release |
Wraps since: 1.2 |
| proxy_connect |
Wraps since: 1.2 |
| proxy_resolver_lookup |
Wraps since: 1.2 |
| resolver_lookup_by_address |
Wraps since: 1.2 |
| resolver_lookup_by_name | |
| resolver_lookup_by_name_with_flags |
Wraps since: 1.2 |
| resolver_lookup_records |
Wraps since: 1.2 |
| resolver_lookup_service |
Wraps since: 1.2 |
| socket_address_enumerator_next |
Wraps since: 1.2 |
| socket_client_connect | |
| socket_client_connect_to_host |
Wraps since: 1.2 |
| socket_client_connect_to_service |
Wraps since: 1.2 |
| socket_client_connect_to_uri |
Wraps since: 1.2 |
| socket_connection_connect |
Wraps since: 1.2 |
| socket_listener_accept | |
| socket_wait |
Creates a since: 1.2 |
| subprocess_wait |
Wraps since: 1.2 |
| subprocess_wait_check |
Creates a future that awaits for since: 0.4 |
| test_add_func |
Adds a test function like g_test_add_func(), but runs |
| thread_spawn |
Spawns a new thread named since: 1.0 |
| thread_wait_for |
Use this when running on a thread spawned with since: 1.0 |
| tls_connection_handshake |
since: 1.2 |
| tls_database_lookup_certificate_for_handle |
Wraps since: 1.2 |
| tls_database_lookup_certificate_issuer |
Wraps since: 1.2 |
| tls_database_lookup_certificates_issued_by |
Wraps since: 1.2 |
| tls_database_verify_chain |
Wraps since: 1.2 |
| tls_interaction_ask_password |
Wraps since: 1.2 |
| tls_interaction_request_certificate |
Wraps since: 1.2 |
| unix_connection_receive_credentials |
Wraps since: 1.2 |
| unix_connection_send_credentials |
Wraps since: 1.2 |
| unlink |
This runs since: 1.1 |
| value_dup_object |
Retrieves the since: 1.0 |
| value_get_object |
Retrieves the since: 0.4 |
| value_set_object |
Stores the given since: 0.4 |
| value_take_object |
Stores the given since: 0.4 |
Function Macros
| ASYNC_PAIR_INFO_BOOLEAN | |
| ASYNC_PAIR_INFO_BOXED | |
| ASYNC_PAIR_INFO_INT | |
| ASYNC_PAIR_INFO_INT64 | |
| ASYNC_PAIR_INFO_LONG | |
| ASYNC_PAIR_INFO_OBJECT | |
| ASYNC_PAIR_INFO_POINTER | |
| ASYNC_PAIR_INFO_STRING | |
| ASYNC_PAIR_INFO_UINT | |
| ASYNC_PAIR_INFO_UINT64 | |
| ASYNC_PAIR_INFO_ULONG | |
| COROUTINE_BEGIN |
Used in a coroutine function body to establish coroutine state. |
| COROUTINE_SUSPEND | |
| COROUTINE_SUSPEND_BOOLEAN | |
| COROUTINE_SUSPEND_BOXED | |
| COROUTINE_SUSPEND_DOUBLE | |
| COROUTINE_SUSPEND_ENUM | |
| COROUTINE_SUSPEND_FD | |
| COROUTINE_SUSPEND_FLAGS | |
| COROUTINE_SUSPEND_FLOAT | |
| COROUTINE_SUSPEND_INT | |
| COROUTINE_SUSPEND_INT64 | |
| COROUTINE_SUSPEND_OBJECT | |
| COROUTINE_SUSPEND_POINTER | |
| COROUTINE_SUSPEND_UINT | |
| COROUTINE_SUSPEND_UINT64 | |
| COROUTINE_YIELD_BOOLEAN |
Like DEX_COROUTINE_YIELD_VALUE(), for boolean values. unstable since: 1.3 |
| COROUTINE_YIELD_BOXED |
Like DEX_COROUTINE_YIELD_VALUE(), for boxed values. unstable since: 1.3 |
| COROUTINE_YIELD_DOUBLE |
Like DEX_COROUTINE_YIELD_VALUE(), for double values. unstable since: 1.3 |
| COROUTINE_YIELD_ENUM |
Like DEX_COROUTINE_YIELD_VALUE(), for enum values. unstable since: 1.3 |
| COROUTINE_YIELD_FD |
Like DEX_COROUTINE_YIELD_VALUE(), for fd values. unstable since: 1.3 |
| COROUTINE_YIELD_FLAGS |
Like DEX_COROUTINE_YIELD_VALUE(), for flags values. unstable since: 1.3 |
| COROUTINE_YIELD_FLOAT |
Like DEX_COROUTINE_YIELD_VALUE(), for float values. unstable since: 1.3 |
| COROUTINE_YIELD_FUTURE |
Like DEX_COROUTINE_YIELD_VALUE(), for future values. unstable since: 1.3 |
| COROUTINE_YIELD_INT |
Like DEX_COROUTINE_YIELD_VALUE(), for int values. unstable since: 1.3 |
| COROUTINE_YIELD_INT64 |
Like DEX_COROUTINE_YIELD_VALUE(), for int64 values. unstable since: 1.3 |
| COROUTINE_YIELD_OBJECT |
Like DEX_COROUTINE_YIELD_VALUE(), for object values. unstable since: 1.3 |
| COROUTINE_YIELD_POINTER |
Like DEX_COROUTINE_YIELD_VALUE(), for pointer values. unstable since: 1.3 |
| COROUTINE_YIELD_STRING |
Like DEX_COROUTINE_YIELD_VALUE(), for string values. unstable since: 1.3 |
| COROUTINE_YIELD_UINT |
Like DEX_COROUTINE_YIELD_VALUE(), for uint values. unstable since: 1.3 |
| COROUTINE_YIELD_UINT64 |
Like DEX_COROUTINE_YIELD_VALUE(), for uint64 values. unstable since: 1.3 |
| COROUTINE_YIELD_VALUE |
Yields a copy of unstable since: 1.3 |
| COROUTINE_YIELD_VARIANT |
Like DEX_COROUTINE_YIELD_VALUE(), for variant values. unstable since: 1.3 |
| DEFINE_CLOSURE_OBJECT |
An object pointer field descriptor for #DEX_DEFINE_CLOSURE_TYPE(). |
| DEFINE_CLOSURE_POINTER |
A pointer field descriptor for #DEX_DEFINE_CLOSURE_TYPE(). |
| DEFINE_CLOSURE_TYPE |
This macro is a lightweight helper for quickly defining closure-like state
structs with matching since: 1.2 |
| DEFINE_CLOSURE_VALUE |
A value field descriptor for #DEX_DEFINE_CLOSURE_TYPE(). |
| DEFINE_CLOSURE_VALUE_WITH_CLEAR |
A value field descriptor for #DEX_DEFINE_CLOSURE_TYPE() which is cleared
by calling |
| DEPRECATED_FOR | |
| DEPRECATED_IN_1_0_FOR | |
| DEPRECATED_IN_1_1_FOR | |
| DEPRECATED_IN_1_2_FOR | |
| DEPRECATED_IN_1_3_FOR | |
| future_new_false | |
| future_new_true | |
| OBJECT_TYPE | |
| OBJECT_TYPE_NAME | |
| return_error_if_fail | |
| UNAVAILABLE |