developit / greenlet

🦎 Move an async function into its own thread.
https://npm.im/greenlet
4.67k stars 100 forks source link

Add type check for the argument of greenlet #48

Open DCtheTall opened 4 years ago

DCtheTall commented 4 years ago

If the argument that is passed is not a function, after this change greenlet would throw a TypeError. greenlet would not work properly if the argument is not a function and the error would be more obscured.