Camel.AsyncClosure.wait

### Method

# Camel AsyncClosurewait

since: 3.12

#### Declaration [src]

    GAsyncResult*
    camel_async_closure_wait (
      CamelAsyncClosure* closure
    )

#### Description [src]

Call this function immediately after starting an asynchronous operation. The function waits for the asynchronous operation to complete and returns its `GAsyncResult` to be passed to the operation’s “finish” function.

This function can be called repeatedly on the same `CamelAsyncClosure` to easily string together multiple asynchronous operations.

Available since: 3.12

This method is not directly available to language bindings.

#### Return value

Type: `GAsyncResult`

A `GAsyncResult` which is owned by the closure.

The returned data is owned by the instance.