syrusakbary / promise

Ultra-performant Promise implementation in Python
MIT License
362 stars 76 forks source link

Question: JavaScript Code #62

Closed xnetcat closed 5 years ago

xnetcat commented 6 years ago

Hi, I AM nre to promise. How I can write thie on python.

return new Promise((resolve, reject) => { drivelist.list((error, drives) => { if (error) return reject(err); resolve(drives); }); });

JeasonLaung commented 4 years ago

Hi dii you find the method to do it? Thank you!