Skip to content

Conversation

@achingbrain
Copy link
Member

This allows us to accept async iterators as arguments to ipfs.add and friends.

It also allows adding plain old js things like strings and arrays, so hooray for that.

This allows us to accept async interators as arguments to ipfs.add and friends.

It also allows adding plain old js things like strings and arrays, so hooray for that.
@achingbrain
Copy link
Member Author

I don't really know if this function is even necessary any more. The input normalisation function in #5 will throw errors if it encounters invalid input, and is also smart enough to do it to the contents of (async) iterators too, so doing this sort of up-front exception doesn't give us much except the possibility of failing fast on a limited subset of inputs.

@hugomrdias
Copy link
Member

Should we remove this once #5 is merged ?

@achingbrain
Copy link
Member Author

I don't think this is necessary any more.

@achingbrain achingbrain closed this Dec 5, 2019
@achingbrain achingbrain deleted the support-async-iterators branch December 5, 2019 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants