12345678910111213141516171819 |
- // Copyright (c) 2025 TerraByte Inc.
- //
- // A non-generic interface that allows the PromiseManager to track and
- // tick promises without needing to know their specific result type.
- namespace Terra.Arbitrator.Promises
- {
- /// <summary>
- /// Represents a promise that can be ticked by the PromiseManager.
- /// </summary>
- public interface ITrackablePromise
- {
- /// <summary>
- /// Executes pending callbacks if the promise is settled.
- /// </summary>
- /// <returns>True if the promise is settled (resolved or rejected), otherwise false.</returns>
- bool Tick();
- }
- }
|