forked from Orchid/orchid
partway towards commands
I got very confused and started mucking about with "spawn" when in fact all I needed was the "inline" extension type in orcx that allows the interpreter to expose custom constants.
This commit is contained in:
@@ -69,8 +69,10 @@ pub struct SpawnerBin {
|
||||
pub data: *const (),
|
||||
/// `self`
|
||||
pub drop: extern "C" fn(*const ()),
|
||||
/// `&self` Add a future to this extension's task
|
||||
pub spawn: extern "C" fn(*const (), FutureBin),
|
||||
/// `&self` Add a future to this extension's task after a configurable delay
|
||||
/// measured in milliseconds. By itself, a pending timer never prevents
|
||||
/// extension shutdown.
|
||||
pub spawn: extern "C" fn(*const (), u64, FutureBin),
|
||||
}
|
||||
|
||||
/// Extension context.
|
||||
|
||||
Reference in New Issue
Block a user