guard tui exit (#16640)

This commit is contained in:
Sebastian
2026-03-08 23:14:41 +01:00
committed by GitHub
parent e51ed460a6
commit 49a3a9fe36
2 changed files with 18 additions and 15 deletions
@@ -111,7 +111,6 @@ export function tui(input: {
fetch?: typeof fetch
headers?: RequestInit["headers"]
events?: EventSource
onExit?: () => Promise<void>
}) {
// promise to prevent immediate exit
return new Promise<void>(async (resolve) => {
@@ -126,7 +125,6 @@ export function tui(input: {
const onExit = async () => {
unguard?.()
await input.onExit?.()
resolve()
}