export const DeferredState = {};
export class Pending {
  constructor(joiners) {
    this.joiners = joiners;
    this._tag = "Pending";
  }

}
export class Done {
  constructor(value) {
    this.value = value;
    this._tag = "Done";
  }

}
/**
 * @tsplus static ets/Deferred/State/Ops pending
 */

export function pending(joiners) {
  return new Pending(joiners);
}
/**
 * @tsplus static ets/Deferred/State/Ops done
 */

export function done(value) {
  return new Done(value);
}
//# sourceMappingURL=DeferredState.mjs.map