You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The read method reads the file into an ArrayBuffer, and resolves to either the number of bytes read during the operation or null (EOF) if there is nothing more to read. Note that it should be possible for a read to be successful and return 0 bytes read while not indicating an EOF.
As part of #3141, implementing the agreed-upon design for k6's File API, we intend to implement a
File.read
method.The
read
method reads the file into anArrayBuffer
, and resolves to either the number of bytes read during the operation ornull
(EOF) if there is nothing more to read. Note that it should be possible for a read to be successful and return0
bytes read while not indicating an EOF.prototype
example
The text was updated successfully, but these errors were encountered: