//! Free function for spawning a [`TaskAgent`] on a Tokio background task.
use Arc;
use Result;
use TaskAgent;
use TaskAgentResult;
/// Spawn a task agent on a Tokio background task.
///
/// Returns a [`JoinHandle`][tokio::task::JoinHandle] that resolves to the
/// agent's [`TaskAgentResult`] when execution finishes.