LavaUI docs

function blockingCall

Swift

func blockingCall<T>(timeout: TimeInterval = 2, _ body: @escaping @Sendable () async throws -> T) throws -> T

Task.detached puts the await on the global concurrency pool, where resuming it needs nobody's cooperation, and the semaphore hands the answer back to the calling thread.

Sources/LavaClient/ControlPlane.swift:443