Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Async.js 368B

123456789101112131415161718192021
  1. 'use strict'
  2. class Async {
  3. run (executors) {
  4. const args = Array.from(arguments).slice(1)
  5. return new Promise(resolve => resolve(executors.async.apply(null, args)))
  6. }
  7. all (arr) {
  8. return Promise.all(arr)
  9. }
  10. returns (value) {
  11. return Promise.resolve(value)
  12. }
  13. throws (reason) {
  14. return Promise.reject(reason)
  15. }
  16. }
  17. module.exports = Async