After pressing a button, it triggers the check function, which then executes the isReady() function to perform operations and determine its truth value.
During the evaluation process, the isReady() method may actually return false, yet display "Success" in the console. This indicates that it does not wait for the asynchronous call to complete.
async check() {
if(await this.isReady(this.entireSchool))
{
console.log ("Success")
}
else
{
console.log ("Fail")
}
}
async isReady(classes: Class)
{
// Actual code implementation is excluded here,
// but as per testing, it returns false consistently.
}