- From: Henry Story <notifications@github.com>
- Date: Wed, 02 Dec 2015 03:54:37 -0800
- To: whatwg/streams <streams@noreply.github.com>
Received on Wednesday, 2 December 2015 11:55:08 UTC
Hi, how is one meant to know what the value of a chunk is going to be? Does that depend on the function that returns chunks? If a chunk can return any type of object then would this not require each piece of code to write long statements of the form ```scala if ( chunk.value.isInstanceOf[UInt8Array]) { ... } else if ( chunk.value.isInstanceOf[js.Array]) { ... } ... ``` Any ideas? --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/issues/409
Received on Wednesday, 2 December 2015 11:55:08 UTC