Poll the current state of a task without blocking.
Returns a Promise that resolves immediately with the current TaskState. Terminal states (completed, cancelled, failed) are permanent.
Poll the current state of a task without blocking.
Returns a Promise that resolves immediately with the current TaskState. Terminal states (completed, cancelled, failed) are permanent.