Skip to content

Spawn processes with arbitrary closures in rust

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

isgasho/mitosis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mitosis

Build Status Current Version License: MIT/Apache-2.0

WIP (Waiting on servo/ipc-channel#249)

This crate provides mitosis::spawn(), which is similar to thread::spawn() but will spawn a new process instead.

fn main() {
    // Needs to be near the beginning of your program
    mitosis::init();

    // some code
    let some_data = 5
    mitosis::spawn(some_data, |data| {
        println!("hello from another process, your data is {}", 5);
    });
}

About

Spawn processes with arbitrary closures in rust

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%