package
0.15.5
Repository: https://github.com/shipwright-io/build.git
Documentation: pkg.go.dev

# README

waiter: Wait Until Condition or Timeout

In a nutshell, it waits until the lock-file is removed. When starting the application, a lock-file is created. When the file is removed, the waiter stops gracefully. When timeout is reached, the application exits on error.

Usage

Please consider --help to see the possible flags, the possible sub-commands are:

waiter start

And:

waiter done

# Functions

NewWaiter instantiate a new waiter, making sure the timeout informed is acceptable.

# Variables

ErrTimeout emitted when timeout is reached.

# Structs

Waiter represents the actor that will wait for timeout, using a lock-file to keep it actively waiting.