Gjsify LogoGjsify Logo

#EAsyncClosure provides a simple way to run an asynchronous function synchronously without blocking a running #GMainLoop or using threads.

  1. Create an #EAsyncClosure with e_async_closure_new().

  2. Call the asynchronous function passing e_async_closure_callback() as the #GAsyncReadyCallback argument and the #EAsyncClosure as the data argument.

  3. Call e_async_closure_wait() and collect the #GAsyncResult.

  4. Call the corresponding asynchronous "finish" function, passing the #GAsyncResult returned by e_async_closure_wait().

  5. If needed, repeat steps 2-4 for additional asynchronous functions using the same #EAsyncClosure.

  6. Finally, free the #EAsyncClosure with e_async_closure_free().

record

Hierarchy

  • AsyncClosure

Index

Constructors

Properties

Constructors

Properties

name: string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method