EDataServer.AsyncClosure

Fields

None

Methods

None

Details

class EDataServer.AsyncClosure

EDataServer.AsyncClosure provides a simple way to run an asynchronous function synchronously without blocking a running GLib.MainLoop or using threads.

  1. Create an EDataServer.AsyncClosure with e_async_closure_new().

2) Call the asynchronous function passing e_async_closure_callback() as the Gio.AsyncReadyCallback argument and the EDataServer.AsyncClosure as the data argument.

  1. Call e_async_closure_wait() and collect the Gio.AsyncResult.

4) Call the corresponding asynchronous “finish” function, passing the Gio.AsyncResult returned by e_async_closure_wait().

5) If needed, repeat steps 2-4 for additional asynchronous functions using the same EDataServer.AsyncClosure.

  1. Finally, free the EDataServer.AsyncClosure with e_async_closure_free().

New in version 3.6.