Gleam - v1.0.2
    Preparing search index...

    Function safeLoad

    • Safe loading wrapper with global timeout and error handling. Use this for any async loading operation that needs timeout protection. Timeout rejects the returned promise but does not cancel the underlying fetch/Image — the request continues until natural completion. Adding AbortSignal support would require a full rewrite (factory-based API). Maybe a future feature, though.

      Type Parameters

      • T

      Parameters

      • promise: Promise<T>
      • url: string
      • operationName: string

      Returns Promise<T>