Skip to content

Commit b47e39f

Browse files
committed
chore: add scala.language.2 to files in scala.concurrent
1 parent c47f6fa commit b47e39f

19 files changed

+24
-2
lines changed

library/src/scala/concurrent/Awaitable.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
package scala.concurrent
1414

1515

16-
16+
import scala.language.`2`
1717
import scala.concurrent.duration.Duration
1818

1919

library/src/scala/concurrent/BatchingExecutor.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
package scala.concurrent
1414

15+
import scala.language.`2`
1516
import java.util.concurrent.Executor
1617
import java.util.Objects
1718
import scala.util.control.NonFatal

library/src/scala/concurrent/BlockContext.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
package scala.concurrent
1414

15+
import scala.language.`2`
16+
1517
/**
1618
* A context to be notified by [[scala.concurrent.blocking]] when
1719
* a thread is about to block. In effect this trait provides

library/src/scala/concurrent/Channel.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
package scala.concurrent
1414

15+
import scala.language.`2`
16+
1517
/** This class provides a simple FIFO queue of data objects,
1618
* which are read by one or more reader threads.
1719
*

library/src/scala/concurrent/DelayedLazyVal.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
package scala.concurrent
1414

15+
import scala.language.`2`
1516

1617
/** A `DelayedLazyVal` is a wrapper for lengthy computations which have a
1718
* valid partially computed result.

library/src/scala/concurrent/ExecutionContext.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
package scala.concurrent
1414

15-
15+
import scala.language.`2`
1616
import java.util.concurrent.{ ExecutorService, Executor }
1717
import scala.annotation.implicitNotFound
1818

library/src/scala/concurrent/Future.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
package scala.concurrent
1414

15+
import scala.language.`2`
1516
import java.util.concurrent.atomic.AtomicReference
1617
import java.util.concurrent.locks.LockSupport
1718
import scala.util.control.{NoStackTrace, NonFatal}

library/src/scala/concurrent/JavaConversions.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
package scala.concurrent
1414

15+
import scala.language.`2`
1516
import java.util.concurrent.{ExecutorService, Executor}
1617
import scala.language.implicitConversions
1718

library/src/scala/concurrent/Promise.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
package scala.concurrent
1414

15+
import scala.language.`2`
1516
import scala.util.{ Try, Success, Failure }
1617

1718
/** Promise is an object which can be completed with a value or failed

library/src/scala/concurrent/SyncChannel.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
package scala.concurrent
1414

15+
import scala.language.`2`
16+
1517
/** A `SyncChannel` allows one to exchange data synchronously between
1618
* a reader and a writer thread. The writer thread is blocked until the
1719
* data to be written has been read by a corresponding reader thread.

0 commit comments

Comments
 (0)