Interface DataInputStream.OnAsyncReadyCallback

Enclosing class:
DataInputStream
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface DataInputStream.OnAsyncReadyCallback
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onAsyncReadyCallback(CallbackHandler __self, Object source_object, AsyncResult res, Pointer user_data)
    Type definition for a function that will be called back when an asynchronous
    operation within GIO has been completed.
  • Method Details

    • onAsyncReadyCallback

      void onAsyncReadyCallback(CallbackHandler __self, @Nullable Object source_object, @Nonnull AsyncResult res, @Nullable Pointer user_data)
      Type definition for a function that will be called back when an asynchronous
      operation within GIO has been completed. #GAsyncReadyCallback
      callbacks from #GTask are guaranteed to be invoked in a later
      iteration of the
      [thread-default main context][g-main-context-push-thread-default]
      where the #GTask was created. All other users of
      #GAsyncReadyCallback must likewise call it asynchronously in a
      later iteration of the main context.

      The asynchronous operation is guaranteed to have held a reference to
      @source_object from the time when the `*_async()` function was called, until
      after this callback returns.
      Parameters:
      source_object - the object the asynchronous operation was started with.
      res - a #GAsyncResult.
      user_data - user data passed to the callback.