Generates the chunks stream for Worker.File and Worker.LargeFile
generate(any(), any(), any(), any()) :: (any(), any() -> any())