From ad876267353b1a8fcbb122cdcff41a5fe135889d Mon Sep 17 00:00:00 2001 From: Wang Guan Date: Tue, 17 Jun 2025 23:44:55 +0900 Subject: [PATCH] lazyThenable: improve signature --- src/concurrency/lazy-thenable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/concurrency/lazy-thenable.ts b/src/concurrency/lazy-thenable.ts index 6e1912a..d060d3a 100644 --- a/src/concurrency/lazy-thenable.ts +++ b/src/concurrency/lazy-thenable.ts @@ -3,7 +3,7 @@ * @param io * @return */ -export function lazyThenable(io: () => T): LazyThenable> { +export function lazyThenable(io: () => T | PromiseLike): LazyThenable> { let r: null | Promise> = null; return { get executed(): boolean {