You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
353 B
CoffeeScript
18 lines
353 B
CoffeeScript
Promise = require "bluebird"
|
|
tapError = require "../lib/tap-error"
|
|
|
|
Promise.try ->
|
|
return 42
|
|
.then ->
|
|
#return 84
|
|
throw new Error "test"
|
|
.finally (val) ->
|
|
console.log "finally", val
|
|
.catch tapError (err) ->
|
|
console.log "tap-err", err.stack
|
|
Promise.delay(1000)
|
|
.then (val) ->
|
|
console.log "then", val
|
|
.catch (err) ->
|
|
console.log "catch", err.stack
|