chore: Makes promises not async.
This commit makes readFromKeyboard's internal (what used to be) event loop not async anymore. We don't use the async portions anymore, and it was bad practice anyways.
This commit is contained in:
parent
c5c73ae602
commit
b99d6a89dc
1 changed files with 1 additions and 2 deletions
|
@ -93,8 +93,7 @@ export async function readFromKeyboard(
|
|||
setTimeout(eventLoop, pullRate);
|
||||
};
|
||||
|
||||
// Yes, this is bad practice. Currently, I don't care.
|
||||
return new Promise(async resolve => {
|
||||
return new Promise(resolve => {
|
||||
setTimeout(eventLoop, pullRate);
|
||||
promise = resolve;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue