greenlet

node v8.12.0
version: master
endpointsharetweet
const greenlet = require('greenlet') let getName = greenlet( async username => { let url = `https://api.github.com/users/${username}` let res = await fetch(url) let profile = await res.json() return profile.name }) console.log(await getName('developit'))
Loading…

no comments

    sign in to comment