John McClean

Results 54 comments of John McClean

I've put the reason I added it below (manipulating a single value asynchronously), but I think the are more general use cases when you want enforce that there is one...

Sure will do, I think `onEmptySwitch(Supplier switchTo)` would also fit well in jOOλ for example.

Yeah, I'd like a curry method on them directly. I'm going extend them (to add in useful methods related to the types in cyclops), a curry method would be very...

Hey @jainh, this is the expected behaviour by default, although Try can be configured to catch subsequent exceptions in map / flatMap. You can use Try.of(value,Exceptions..) to configure Try such...

Hmmm.. That seems strange. Try.withCatch takes a CheckedSupplier so it should compile. What version are you using? This compiles for me (tested against cyclops-react 2.0.0-MI4) public int throwsEx() throws Exception{...

Please do. I think that version should compile also (as it is also using CheckedSupplier to handle Checked Exceptions e.g. https://github.com/aol/cyclops/blob/v7.2.0/cyclops-try/src/main/java/com/aol/cyclops/trycatch/Try.java#L224)

@jainh Do you want to process a the result in parallel in some way? i.e. is it a Collection that you would convert to a Stream and execute in parallel?...

Hey @noorulhaq I haven't had time to look at this yet - I'll play around with it next week and see if it can be done with what is available...

I think the best thing to do is to use 2.x for this. I'm working on adding Kleisli impl directly there. There is a work in progress PR here if...

hey @noorulhaq you can pull the Kleilsli impl from the PR into your own code and play around with it against the current v2 now if you like. I'll keep...