Fork me on GitHub

I was looking at an api that uses the newish java CompletableFuture stuff, and thinking what a bummer it would be to have to write all the adapter bits between that and core.async, then I realized you could (if you ignored all good practices about extending protocols you don't own to types you don't own) just extend core.async's protocols to the completeable future interfaces.

👍 4
Jakub Holý (HolyJak)16:02:13

It has been discussed recently in the Google group that this about protocols is just best practice, exceptions might be ok as long as unknowing users cannot run into your extensions conflicting with other library's