-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Does this wrapper support the async/await pattern? I tried it, but it doesn't seem like so. I ended up creating a small layer around it to solve it, like this:
export const challongeApi = {
createTournament: async (tournament): => {
return new Promise(
(resolve, reject) => {
client.tournaments.create({
tournament: tournament,
callback: (err, data) => {
if (err)
reject(err)
else
resolve(data)
}
});
}
);
}
}Metadata
Metadata
Assignees
Labels
No labels