bun_sm 0.1.0

SpiderMonkey-backed API compatibility layer replacing bun_jsc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Concurrent task types.

/// Task that can be enqueued cross-thread.
pub trait ConcurrentTask: Send + 'static {
    fn run(self: Box<Self>);
}

/// Task that runs on a work pool thread.
pub trait WorkPoolTask: Send + 'static {
    fn run(self: Box<Self>);
}

/// Generic task type — union of all task kinds.
pub trait AnyTask: Send + 'static {
    fn run(self: Box<Self>);
}