Skip to content
jedld edited this page Nov 9, 2012 · 1 revision

Threads allow you to execute tasks in parallel. You can easily define one in Droiuby by passing a block to the _thread function.

thread = _thread {
    puts 'This message is printed inside a thread'
}

thread.start