Skip to content

Instantly share code, notes, and snippets.

@idabmat
Last active October 2, 2018 06:56
Show Gist options
  • Save idabmat/1a6dbfeb3ba0819459acb9a264515d15 to your computer and use it in GitHub Desktop.
Save idabmat/1a6dbfeb3ba0819459acb9a264515d15 to your computer and use it in GitHub Desktop.
class TaskA < Zenaton::Interfaces::Task
include Zenaton::Traits::Zenatonable
def handle
puts 'Task A starts'
sleep 3 # Task takes some time to complete
puts 'Task A ends'
0 # The result of the task
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment