IResourceWithWaitSupport.waitForCompletion

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

Signature

methodwaitForCompletionbuilder
Waits for the dependency resource to enter the Exited or Finished state before starting the resource.
waitForCompletion(
dependency: IResource,
exitCode?: number): IResourceWithWaitSupport
dependencyIResourceThe resource builder for the dependency resource.
exitCodenumberoptional= 0The exit code which is interpreted as successful.
IResourceWithWaitSupport

Defined on

This method is defined on the following type: