If you are interested in performing additional calculations on Promise<T>, you may find this small library useful. Mutex, producer-consumer separation (side-effect operation), signaling (flag control) ...
Abstract: The rapid escalation of Internet traffic and increasingly heterogeneous service demands impose stringent requirements on optical networks for dynamic resource scheduling, efficient spectrum ...