oneTime function

_Dependency oneTime(
  1. PreconditionId targetId
)

This kind of dependency requires the target to be satisfied at least once. Later fails or crashes of the target doesn't change the dependants status.

Implementation

_Dependency oneTime(PreconditionId targetId) {
  return _Dependency._(targetId, false).._onceOnly = true;
}