Ide.BuildManager.rebuild_async

### Method

# Ide BuildManagerrebuild_async

#### Declaration

    void
    ide_build_manager_rebuild_async (
      IdeBuildManager* self,
      IdePipelinePhase phase,
      GPtrArray* targets,
      GCancellable* cancellable,
      GAsyncReadyCallback callback,
      gpointer user_data
    )

#### Description

Asynchronously requests that the build pipeline clean and rebuild up to the given phase. This may involve discarding previous build artifacts to allow for the rebuild process.

See `ide_pipeline_rebuild_async()` for more information.

Available since: | 3.32

#### Parameters

`phase` | `IdePipelinePhase`
| The build phase to rebuild to.
`targets` | An array of `None`
| An array of `GPtrArray` of `IdeBuildTarget` or `NULL`.
| The argument can be `NULL`.
| The data is owned by the caller of the function.
`cancellable` | `GCancellable`
| A `GCancellable` or `NULL`.
| The argument can be `NULL`.
| The data is owned by the caller of the function.
`callback` | `GAsyncReadyCallback`
| A callback to execute upon completion, or `NULL`.
| The argument can be `NULL`.
`user_data` | `gpointer`
| Closure data for `callback`.
| The argument can be `NULL`.
| The data is owned by the caller of the function.