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 runningGLib.MainLoop
or using threads.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 theEDataServer.AsyncClosure
as the data argument.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
.Finally, free the
EDataServer.AsyncClosure
with e_async_closure_free().
New in version 3.6.