Have ideas to improve npm?Join in the discussion! ¬Ľ

    thor-schedule

    0.1.1¬†‚Äʬ†Public¬†‚Äʬ†Published

    Thor-Schedule

    Schedule client for thorbuster service

    Example

    initialize

    schedule = require('thor-schedule').initialize({
      req: 'tcp://localhost:5567'
      sub: 'tcp://localhost:5568'
      debug: true
    })

    schedule

    schedule.schedule
      schedule: Date.now() + 1000
      callbackData: {msg: 'I will be back'}
      callback: (data) ->
        console.log data.msg
    ==> 'I will be back'

    cancel

    schedule.schedule
      schedule: Date.now() + 1000
      taskId: 'sometitle'
      callback: ->
        console.log 'You will never see this message'
     
    schedule.cancel({taskId: 'sometitle'})

    Licence

    MIT

    Keywords

    none

    Install

    npm i thor-schedule

    DownloadsWeekly Downloads

    2

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • avatar