✨ multi threaded workers
This commit is contained in:
parent
0c190df5d7
commit
e827faaa3f
7 changed files with 208 additions and 45 deletions
|
@ -17,7 +17,7 @@ pub fn myfn(i: i32) -> i32 {
|
|||
i * 2
|
||||
}
|
||||
|
||||
#[worker]
|
||||
#[worker(4)]
|
||||
pub fn multiply(a: i32, b: i32) -> i32 {
|
||||
a * b
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue