EDataServer.Source.write
Description: Reference for EDataServer.Source.write

### Virtual Method

# EDataServer Sourcewrite

since: 3.6

#### Declaration [src]

    void
    write (
      ESource* source,
      GCancellable* cancellable,
      GAsyncReadyCallback callback,
      gpointer user_data
    )

#### Description [src]

Asynchronously submits the current contents of `source` to the D-Bus service to be written to disk and broadcast to other clients. The `source` must be `ESource:writable`.

When the operation is finished, `callback` will be called. You can then call `e_source_write_finish()` to get the result of the operation.

Available since: 3.6

#### Parameters

`cancellable`

  Type: `GCancellable`

  Optional `GCancellable` object, or `NULL`.

  The argument can be `NULL`.
  The data is owned by the caller of the method.

`callback`

  Type: `GAsyncReadyCallback`

  A `GAsyncReadyCallback` to call when the request is satisfied.

`user_data`

  Type: `gpointer`

  Data to pass to the callback function.

  The argument can be `NULL`.
  The data is owned by the caller of the method.