# ResourceWithWaitSupport

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Version: `17.0.0`
- Kind: `interface`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Represents a resource that can wait for other resources to be running, health, and/or completed.

## Definition

```go
type ResourceWithWaitSupport interface{}
```

## Methods

A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.

- [WaitFor](/reference/api/go/aspire.hosting/resourcewithwaitsupport/waitfor.md) -- `method` -- Waits for another resource to be ready
  ```go
  WaitFor(dependency Resource, options ...*WaitForOptions) ResourceWithWaitSupport
  ```
- [WaitForCompletion](/reference/api/go/aspire.hosting/resourcewithwaitsupport/waitforcompletion.md) -- `method` -- Waits for the dependency resource to enter the Exited or Finished state before starting the resource.
  ```go
  WaitForCompletion(dependency Resource, options ...*WaitForCompletionOptions) ResourceWithWaitSupport
  ```
- [WaitForStart](/reference/api/go/aspire.hosting/resourcewithwaitsupport/waitforstart.md) -- `method` -- Waits for another resource to start
  ```go
  WaitForStart(dependency Resource, options ...*WaitForStartOptions) ResourceWithWaitSupport
  ```

## Applies to

- [`ContainerResource`](/reference/api/go/aspire.hosting/containerresource.md)
- [`CSharpAppResource`](/reference/api/go/aspire.hosting/csharpappresource.md)
- [`DotnetToolResource`](/reference/api/go/aspire.hosting/dotnettoolresource.md)
- [`ExecutableResource`](/reference/api/go/aspire.hosting/executableresource.md)
- [`ProjectResource`](/reference/api/go/aspire.hosting/projectresource.md)
