orthecreedence / blackbird

Common Lisp promise implementation (successor to cl-async-future)
83 stars 10 forks source link

Track and notify unfinalized/uncaught promise chains #4

Open orthecreedence opened 9 years ago

orthecreedence commented 9 years ago

Take this example:

(chain 4
  (:then (x) (+ x 'test))
  (:then (x) (save-to-db x))

The promise chain is broken but the error isn't caught (unless attach is called on the chain call). If we can use trivial-garbage to detect these dangling chains and run some sort of callback, it would aid in the debugging of improperly handled chains.