Antd.DownloadProgress (antd v0.4.1)

Copy Markdown View Source

A fetch-progress update emitted during a streaming download when progress is requested. Counts are in chunks, not bytes — the byte denominator is the download's total size (the x-content-length header over gRPC, the leading NDJSON meta frame over REST). total is 0 while still unknown (mid DataMap-resolution).

phase is one of:

  • "resolving_map" — walking the hierarchical DataMap to learn the count
  • "resolved" — DataMap resolved, total now holds the real chunk count
  • "fetching" — fetching data chunks; fetched/total advance the bar

Summary

Types

t()

@type t() :: %Antd.DownloadProgress{
  fetched: non_neg_integer(),
  phase: String.t(),
  total: non_neg_integer()
}