class AsyncTask
Defined at line 23 of file ../../src/developer/debug/zxdb/client/async_task.h
Abstractly represents a single asynchronous task (e.g. a Rust future).
Public Methods
void AsyncTask (Session * session)
Defined at line 9 of file ../../src/developer/debug/zxdb/client/async_task.cc
void ~AsyncTask ()
Defined at line 11 of file ../../src/developer/debug/zxdb/client/async_task.cc
fxl::WeakPtr<AsyncTask> GetWeakPtr ()
Defined at line 13 of file ../../src/developer/debug/zxdb/client/async_task.cc
uint64_t GetId ()
Returns a unique identifier for this task if available, or 0.
Type GetType ()
const Location & GetLocation ()
Returns the location where this task was defined or is currently executing.
const Identifier & GetIdentifier ()
Returns the identifier of this asynchronous task. This can be anything from a function name or
a type name, like JoinHandles, Timers, Scopes, or literal Task objects in the respective
runtime.
std::string GetState ()
Returns a string representation of the task's current state (e.g. "Pending", "Ready").
const std::vector<NamedValue> & GetValues ()
Returns all variables that are associated with this task, these can be lambda captures, state
variables, or anything else that the runtime decided to include in the task object.
std::vector<Ref> GetChildren ()
Enumerations
enum Type
| Name | Value |
|---|---|
| kTask | 0 |
| kFuture | 1 |
| kScope | 2 |
| kFunction | 3 |
| kOther | 4 |
Defined at line 33 of file ../../src/developer/debug/zxdb/client/async_task.h