We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TSTL had not implemented ConditionVariable class to use predicator in wait functions. At next update, they're need to be implemented.
ConditionVariable
namespace std { export class ConditionVariable { public wait(): Promise<void>; public async wait(predicator: Predicator): Promise<void> { while (!await predicator()) await this.wait(); } public wait_for(ms: number): Promise<boolean>; public wait_for(ms: number, predicator: Predicator): Promise<boolean>; public wait_until(at: Date): Promise<boolean>; public async wait_until(at: Date, predicator: Predicator): Promise<boolean> { while (!await predicator()) if (!await this.wait_until(at)) return await predicator(); return true; } } } type Predicator = () => boolean | Promise<boolean>;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
TSTL had not implemented
ConditionVariable
class to use predicator in wait functions. At next update, they're need to be implemented.The text was updated successfully, but these errors were encountered: