Skip to content
Docs Try Aspire
Docs Try

waitForCompletion

Method
📦 Aspire.Hosting v13.4.0
interface ContainerResource {
// ... omitted for brevity
waitForCompletion(
dependency: IResource,
exitCode?: number): IResourceWithWaitSupport;
}

Signature

method waitForCompletion builder
Waits for the dependency resource to enter the Exited or Finished state before starting the resource.
waitForCompletion(
dependency: IResource,
exitCode?: number): IResourceWithWaitSupport
dependency IResource
exitCode number optional = 0
IResourceWithWaitSupport

Applies to

This method applies to the following types: