A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::wasm::AsyncTask Class Reference

#include <cpp/a11/wasm/async_task.h>

Inheritance diagram for a11::wasm::AsyncTask:
[legend]

Public Types

using Work = std::function< absl::StatusOr< std::string >()>
 

Public Member Functions

 ~AsyncTask ()
 
void Launch ()
 
Result * Take ()
 
void Cancel ()
 

Static Public Member Functions

static std::shared_ptr< AsyncTask > Start (Work work)
 

Member Typedef Documentation

◆ Work

using a11::wasm::AsyncTask::Work = std::function<absl::StatusOr<std::string>()>

Constructor & Destructor Documentation

◆ ~AsyncTask()

a11::wasm::AsyncTask::~AsyncTask ( )

Member Function Documentation

◆ Cancel()

void a11::wasm::AsyncTask::Cancel ( )

◆ Launch()

void a11::wasm::AsyncTask::Launch ( )

◆ Start()

std::shared_ptr< AsyncTask > a11::wasm::AsyncTask::Start ( Work  work)
static

◆ Take()

Result * a11::wasm::AsyncTask::Take ( )

The documentation for this class was generated from the following files: