array(source[, options])


  • source AsyncIterable|Iterable
  • options <Object>
    • signal <AbortSignal>
    • limit <number> 要消耗的最大字节数。如果收集的总字节数超过限制,将抛出 ERR_OUT_OF_RANGE 错误
  • 返回:Promise

将所有块收集为 Uint8Array 值的数组(不进行连接)。

🌐 Collect all chunks as an array of Uint8Array values (without concatenating).