Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.tilebox.com/llms.txt

Use this file to discover all available pages before exploring further.

func Collect[K any](seq iter.Seq2[K, error]) ([]K, error)
Convert any sequence into a slice. It return an error if any of the elements in the sequence has a non-nil error.

Parameters

seq
iter.Seq2[[]K, error]
The sequence of bytes to convert

Returns

A slice of K or an error if any.
jobs, err := workflows.Collect(
  client.Jobs.List(ctx, interval),
)