-
Notifications
You must be signed in to change notification settings - Fork 0
Callbacks in jask
Julius Paffrath edited this page Sep 2, 2018
·
3 revisions
In jask you can handle callback functionality by using a function as a parameter:
function myFunc(cb)
cb()
end
When calling myFunc you have to pass a function name:
function myCallback()
printLine("I am a callback!")
end
myFunc(myCallback)
- Home
- Getting started
- Control flow
- Functions
- List variables in jask
- Dictionary variables in jask
- Structs in jask
- Convert variables
- Internal Functions
- The access operator
- Callbacks in jask
- Modules
- Internal Modules
- The jask standard library jcore
- Using CMD arguments in jask
- Nested function calls
- Functions inside functions!
- Modules inside functions!
- Performance comparison of loops