Interface AsyncReadyCallback
public interface AsyncReadyCallback
This class implements the GIO AsyncReadyCallback type and is used to
transform an asynchronous
async and synchronous await
operation into a single synchronous run operation.-
Method Summary
-
Method Details
-
async
void async(long callback) This method is responsible for initializes the asynchronous operation- Parameters:
callback- The callback address to execute when the operation is complete.
-
await
long await(long result) This method is called from within the callback function in order to finish the executed operation and to return the result.- Parameters:
result- The generic, asynchronous function result.- Returns:
- The specific result of the operation.
-