File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
main/scala/com/baeldung/scala/lazyval
test/scala/com/baeldung/scala/lazyval Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- package com .baeldung .scala
1
+ package com .baeldung .scala . lazyval
2
2
3
3
import scala .concurrent .ExecutionContext .Implicits .global
4
4
import scala .concurrent ._
@@ -59,4 +59,4 @@ object SequentialLazyVals extends App {
59
59
}
60
60
61
61
run.foreach(println)
62
- }
62
+ }
Original file line number Diff line number Diff line change 1
- package com .baeldung .scala
1
+ package com .baeldung .scala . lazyval
2
2
3
3
import org .scalatest .FunSuite
4
4
import org .scalatest .Matchers ._
5
5
6
6
import scala .concurrent .ExecutionContext .Implicits .global
7
7
import scala .concurrent .duration ._
8
8
import scala .concurrent .{Future , _ }
9
- import com .baeldung .scala
9
+ import com .baeldung .scala . lazyval
10
10
11
11
class LazyValUnitTest extends FunSuite {
12
12
@@ -27,10 +27,10 @@ class LazyValUnitTest extends FunSuite {
27
27
// given
28
28
val futures = Future .sequence(Seq (
29
29
Future {
30
- scala. LazyValStore .squareOf5
30
+ LazyValStore .squareOf5
31
31
},
32
32
Future {
33
- scala. LazyValStore .squareOf6
33
+ LazyValStore .squareOf6
34
34
}))
35
35
36
36
// when
You can’t perform that action at this time.
0 commit comments