Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ lazy val tests = crossProject(JSPlatform, JVMPlatform, NativePlatform)
nativeSettings,
libraryDependencies ++= List(
"io.github.cquiroz" %%% "scala-java-time" % "2.4.0-M3",
"io.github.cquiroz" %%% "scala-java-time-tzdb" % "2.4.0-M3"
"io.github.cquiroz" %%% "scala-java-time-tzdb" % "2.4.0-M3",
"com.github.lolgab" %%% "scala-native-crypto" % "0.0.4"
)
)

Expand Down
1 change: 1 addition & 0 deletions core/native/src/main/scala/zio/internal/OneShot.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ private[zio] final class OneShot[A] private (var value: A) {
* Retrieves the value of the variable, blocking if necessary.
*/
def get(): A = {
if (value == null) scala.scalanative.loop.EventLoop.run()
if (value == null) throw new Error("Cannot block for result to be set in Scala Native")
value
}
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.5.0")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.3")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.1")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0")
addSbtPlugin("com.github.sbt" % "sbt-unidoc" % "0.5.0")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10")
Expand Down