hoodiehq / hoodie-task-client

client api for asynchronous task queue, using PouchDB for sync
Apache License 2.0
2 stars 9 forks source link

add options.timeout to hoodie.task.start API #30

Open gr2m opened 8 years ago

gr2m commented 8 years ago

follow up for https://github.com/hoodiehq/hoodie/issues/145

e.g.

hoodie.task.start('message', {
  to: 'pete@example.com',
  message: 'wazzzup?'
}, {
  timeout: 10000
}).catch( function( error ) {
  // { error: 'timeout' } 
});