test: extract defer helper (#24019)
This commit is contained in:
parent
c66282a460
commit
7c7ea141f0
2 changed files with 15 additions and 5 deletions
|
@ -19,7 +19,7 @@ export async function runCleanupFunctions () {
|
|||
}
|
||||
|
||||
export function defer (f: CleanupFunction) {
|
||||
cleanupFunctions.push(f);
|
||||
cleanupFunctions.unshift(f);
|
||||
}
|
||||
|
||||
class RemoteControlApp {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue