(procedure?: Procedure<T>)
| 82 | } |
| 83 | |
| 84 | clear(procedure?: Procedure<T>): void { |
| 85 | if (this.#option.isEmpty()) {return} |
| 86 | if (isDefined(procedure)) {procedure(this.#option.unwrap())} |
| 87 | this.#option = Option.None |
| 88 | this.#notifier.notify(this) |
| 89 | } |
| 90 | |
| 91 | assert(fail?: ValueOrProvider<string>): this { |
| 92 | this.#option.assert(fail) |