The snippet wasn't working due to an unrelated documentation error -- the constructor for a Promises::Deferred object should have been deferred, not deferred->new. Doh.
I've implemented a wrapper for the synchronous code similar to your code, and now it's all working as anticipated. Thank you for the help!
In reply to Re^2: Making a Promise
by Anonymous Monk
in thread Making a Promise
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |