Skip to content
Docs Try Aspire
Docs Try

IResourceWithWaitSupport.waitForCompletion

Method
📦 Aspire.Hosting v13.4.0
interface IResourceWithWaitSupport {
// ... 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

Defined on

This method is defined on the following type: