future-perfect icon indicating copy to clipboard operation
future-perfect copied to clipboard

Switched internals to use native Scala's Futures

Open pavelme opened this issue 10 years ago • 10 comments

At the moment we are not get rid of Twitter Util yet. But changed future-perfect internals to use scala's futures. The result converted to Twitter Utils Futures/Promises in order not to break outside dependencies.

pavelme avatar Feb 05 '15 09:02 pavelme

why getting rid of twitter's future?

nadav-dav avatar Feb 08 '15 09:02 nadav-dav

@nadav-dav because they're very slow to evolve/respond (took them almost as long as us to move to 2.11)

@pavelme why does the build fail?

electricmonk avatar Feb 09 '15 06:02 electricmonk

@electricmonk According to TravisCI:

No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself. The build has been terminated

but my guess is because of 3 warnings that appeared during the build:

[warn] /home/travis/build/wix/future-perfect/src/main/scala/com/wix/async/AsyncExecution.scala:62: abstract type pattern T is unchecked since it is eliminated by erasure [warn] future.onSuccess { case t: T => [warn] ^ [warn] /home/travis/build/wix/future-perfect/src/main/scala/com/wix/async/Implicits.scala:35: abstract type pattern T is unchecked since it is eliminated by erasure [warn] f.onSuccess { case r: T => [warn] ^ [warn] /home/travis/build/wix/future-perfect/src/main/scala/com/wix/async/Implicits.scala:39: abstract type pattern T is unchecked since it is eliminated by erasure [warn] f.onFailure { case e: T => [warn] ^ [warn] three warnings found

I understand the reason but not yet managed to find workaround.

pavelme avatar Feb 09 '15 09:02 pavelme

@pavelme I don’t think these warnings are the reason, unless I’m missing something

--  http://www.shaiyallin.com

On February 9, 2015 at 11:35:59 AM, Pavel Meledin ([email protected]) wrote:

@electricmonk According to TravisCI:

No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself. The build has been terminated

but my guess is because of 3 warnings that appeared during the build:

[warn] /home/travis/build/wix/future-perfect/src/main/scala/com/wix/async/AsyncExecution.scala:62: abstract type pattern T is unchecked since it is eliminated by erasure [warn] future.onSuccess { case t: T => [warn] ^ [warn] /home/travis/build/wix/future-perfect/src/main/scala/com/wix/async/Implicits.scala:35: abstract type pattern T is unchecked since it is eliminated by erasure [warn] f.onSuccess { case r: T => [warn] ^ [warn] /home/travis/build/wix/future-perfect/src/main/scala/com/wix/async/Implicits.scala:39: abstract type pattern T is unchecked since it is eliminated by erasure [warn] f.onFailure { case e: T => [warn] ^ [warn] three warnings found

I understand the reason but not yet managed to find workaround.

— Reply to this email directly or view it on GitHub.

electricmonk avatar Feb 09 '15 09:02 electricmonk

@electricmonk "Locally everything works" (c) All tests passed (in Travis log as well). No more info except these 3 warnings :-( May I ask you to checkout it from my fork (https://github.com/pavelme/future-perfect) and just run it on your machine. If the problem not in these 3 warnings then I even don't know where to dig in. It's actually failed for both Scala versions: 2.10 & 2.11 with the same reason.

pavelme avatar Feb 09 '15 09:02 pavelme

But the build still fails on Travis. Can you figure out why the build fails on Travis?

--  http://www.shaiyallin.com

On February 9, 2015 at 11:48:00 AM, Pavel Meledin ([email protected]) wrote:

@electricmonk "Locally everything works" (c) All tests passed (in Travis log as well). No more info except these 3 warnings :-( May I ask you to checkout it from my fork (https://github.com/pavelme/future-perfect) and just run it on your machine. If the problem not in these 3 warnings then I even don't know where to dig in. It's actually failed for both Scala versions: 2.10 & 2.11 with the same reason.

— Reply to this email directly or view it on GitHub.

electricmonk avatar Feb 11 '15 12:02 electricmonk

@electricmonk Sure :-) will keep you updated

pavelme avatar Feb 11 '15 15:02 pavelme

@electricmonk Could you please do a review and in case everything is ok - merge

pavelme avatar Mar 12 '15 15:03 pavelme

@ittaiz you wanna pick this up?

electricmonk avatar Jul 19 '15 11:07 electricmonk

i guess we will, it was just under our radar. a bit hectic this week but one of us will take it

ittaiz avatar Jul 19 '15 18:07 ittaiz