Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions packages/dds/task-manager/src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface ITaskManagerEvents extends ISharedObjectEvents {
/**
* Fires when a task has been exclusively assigned to the client.
*
* @remarks Does not account for known pending ops, but instead only reflects the current state.
* @remarks Does not account for known pending ops, but instead only reflects the current consensus state.
*
* @eventProperty
*/
Expand Down Expand Up @@ -161,15 +161,13 @@ export interface ITaskManager extends ISharedObject<ITaskManagerEvents> {
abandon(taskId: string): void;

/**
* Check whether this client is the current assignee for the task and there is no outstanding abandon op that
* would abandon the assignment.
* Check whether this client is the current assignee for the task based on the consensus state.
* @param taskId - Identifier for the task
*/
assigned(taskId: string): boolean;

/**
* Check whether this client is either the current assignee, in queue, or we expect they will be in queue after
* outstanding ops have been ack'd.
* Check whether this client is either the current assignee or in queue to become the assignee.
* @param taskId - Identifier for the task
*/
queued(taskId: string): boolean;
Expand Down
Loading
Loading