-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to electron 2.0.18 and node 8.9.3 (#4001)
* upgrade to electron 2.0.18 and node 8.9.3 * use cypress/browsers:node8.9.3-chrome73 docker image * fix type_spec for chrome * Revert "fix type_spec for chrome" This reverts commit 7914f68. * fix driver specs for chrome * update engines to 8.9.3 Co-authored-by: Ben Kucera <[email protected]> Co-authored-by: Brian Mann <[email protected]>
- Loading branch information
1 parent
586c1c0
commit b8f0257
Showing
6 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
8.2.1 | ||
8.9.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b8f0257
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
declare -r sbt_release_version="1.2.6"
declare -r sbt_unreleased_version="1.2.6"
declare -r sbt_release_version="0.13.16"
declare -r sbt_unreleased_version="0.13.16"
package neotypes.akkastreams
import akka.stream.scaladsl.{Flow, Source}
import scala.concurrent.{ExecutionContext, Future}
object implicits {
implicit def akkaStream(implicit ec: ExecutionContext): neotypes.Stream.Aux[AkkaStream, Future] =
new neotypes.Stream[AkkaStream] {
override type F[T] = Future[T]
}
Format:
}
What I do not know, is if a Session is mutable state
It is mutable state indeed. Here's an example that leaks:
object Main {
val s = driver.session().asScala[IO]
val program =
ServiceOne.foo(s) *> ServiceTwo.foo(s)
/// more services and more logic
// access to session where it shouldn't be accessed. This is more obvious in larger programs.
s.beginTransaction.flatMap { tx =>
c"create (p:Record {personId: 123)".query[Unit].execute(tx)
}
}
object ServiceOne {
def foo(session: Session[IO]): IO[Unit] = ??? // do something with the session
}
object ServiceTwo {
def foo(session: Session[IO]): IO[Unit] = ??? // do something with the session
}
In order to control the region of sharing we use flatMap and explicitly share the mutable state as arguments of other functions.
object Main {
val mkSession: IO[Session[IO]] = IO(driver.session().asScala[IO])
val program =
mkSession.flatMap { s => // specific region of sharing
ServiceOne.foo(s) *> ServiceTwo.foo(s)
}
/// more services and more logic
// the same sessions cannot be accessed here now
mkSession.flatMap { s => // this is a different session
s.beginTransaction.flatMap { tx =>
c"create (p:Record {personId: 123)".query[Unit].execute(tx)
}
}
}
object ServiceOne {
def foo(session: Session[IO]): IO[Unit] = ??? // do something with the session
}
object ServiceTwo {
def foo(session: Session[IO]): IO[Unit] = ??? // do something with the session
}
par la suite la dénomination de la source changera en fonction du nom qui lui serais donnée dans la "pull request"
}