co-actor 0.1.0

Very lightweight actor abstraction over tokio channels.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (C) 2026 1io BRANDGUARDIAN GmbH

use crate::task_handle::TaskHandle;
use std::future::Future;

pub type LocalTaskHandle<T> = TaskHandle<T>;

/// Spawn a local (not Send) future.
pub trait LocalTaskSpawner {
	fn spawn_local<F>(&self, fut: F) -> LocalTaskHandle<F::Output>
	where
		F: Future + 'static,
		F::Output: Send + 'static;
}