EDataServer.AsyncClosure¶
Fields¶
None
Methods¶
None
Details¶
- class EDataServer.AsyncClosure¶
 EDataServer.AsyncClosureprovides a simple way to run an asynchronous function synchronously without blocking a runningGLib.MainLoopor using threads.Create an
EDataServer.AsyncClosurewith e_async_closure_new().
2) Call the asynchronous function passing e_async_closure_callback() as the
Gio.AsyncReadyCallbackargument and theEDataServer.AsyncClosureas the data argument.Call e_async_closure_wait() and collect the
Gio.AsyncResult.
4) Call the corresponding asynchronous “finish” function, passing the
Gio.AsyncResultreturned by e_async_closure_wait().5) If needed, repeat steps 2-4 for additional asynchronous functions using the same
EDataServer.AsyncClosure.Finally, free the
EDataServer.AsyncClosurewith e_async_closure_free().
New in version 3.6.