Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Feb 6, 2023
1 parent d382c25 commit 85f8302
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
- implicit lazy val global: ExecutionContext = impl.ExecutionContextImpl.fromExecutor(null: Executor)
+ implicit lazy val global: ExecutionContext = {
+ if(isMultithreadingEnabled) impl.ExecutionContextImpl.fromExecutor(null: Executor)
+ else scala.scalanative.runtime.ExecutionContext.singleThreaded
+ else scala.scalanative.runtime.ExecutionContext.global
+ }
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ExecutionContextExtTest {
else {
assertEquals(ExecutionContext.global, opportunistic)
assertEquals(
scala.scalanative.runtime.NativeExecutionContext.queue,
scala.scalanative.runtime.ExecutionContext.global,
opportunistic
)
}
Expand Down

0 comments on commit 85f8302

Please sign in to comment.