Vixen
caa30e12
csharp
public sealed class QueueGrain

One queue, keyed by its definition's address.

Read the guide page for this →

Methods (8)

  • public Task<QueueTicket> Enqueue(QueueEntry entry)

    Joins the queue.

  • public Task<bool> Cancel(string ticket)

    Gives up.

  • public Task<QueueTicket?> Ticket(string ticket)

    Where a ticket has got to.

  • public Task<ImmutableArray<QueueMatch>> Cycle(DateTimeOffset now)

    Forms whatever can be formed.

  • public Task<bool> Start(Guid match)

    Says a formed match got its shard.

  • public Task<bool> Abandon(Guid match, DateTimeOffset now)

    Says a formed match did not get one, and puts its tickets back.

  • public Task<bool> Backfill(Guid match, int seats)

    Says somebody left a running match, so a seat needs filling.

  • public Task<QueueSnapshot> Read()

    What the queue looks like.