mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-26 21:08:45 +08:00
🚀 coroutine.resume can pass arguments
This commit is contained in:
+5
-5
@@ -507,9 +507,9 @@ var compile=func(code,filename="<compile>"){
|
||||
}
|
||||
|
||||
var coroutine={
|
||||
create: func(function){return __cocreate;},
|
||||
resume: func(co) {return __coresume;},
|
||||
yield: func(args...) {return __coyield; },
|
||||
status: func(co) {return __costatus;},
|
||||
running:func() {return __corun; }
|
||||
create: func(function) {return __cocreate;},
|
||||
resume: func(co,args...) {return __coresume;},
|
||||
yield: func(args...) {return __coyield; },
|
||||
status: func(co) {return __costatus;},
|
||||
running:func() {return __corun; }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user