canjs / can-zone

A context for tracking asynchronous activity in JavaScript applications.
https://v4.canjs.com/doc/can-zone.html
MIT License
92 stars 4 forks source link

Implements can-wait/waitfor #24

Closed matthewp closed 9 years ago

matthewp commented 9 years ago

This adds a new module can-wait/waitfor. This is a simple wrapper around the globals canWait and canWait.data. This prevents the need to detect of canWait exists, you can just use this and if it exists it will be called, otherwise it's a noop. Closes #22