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:
greysoh 2024-05-07 12:52:34 -04:00
parent c5c73ae602
commit b99d6a89dc
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37

View file

@ -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;
});