File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
shared/src/main/scala/async Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -4,19 +4,24 @@ import scala.concurrent.duration.FiniteDuration
4
4
import java .util .concurrent .TimeoutException
5
5
import gears .async .AsyncOperations .sleep
6
6
7
+ /** Defines fundamental operations that require the support of the scheduler. This is commonly provided alongside with
8
+ * the given implementation of [[Scheduler ]].
9
+ * @see
10
+ * [[Scheduler ]] for the definition of the scheduler itself.
11
+ */
7
12
trait AsyncOperations :
8
- /** Suspends the current [[Async ]] context for at least [[ millis ]] milliseconds. */
13
+ /** Suspends the current [[Async ]] context for at least ` millis` milliseconds. */
9
14
def sleep (millis : Long )(using Async ): Unit
10
15
11
16
object AsyncOperations :
12
- /** Suspends the current [[Async ]] context for at least [[ millis ]] milliseconds.
17
+ /** Suspends the current [[Async ]] context for at least ` millis` milliseconds.
13
18
* @param millis
14
- * The duration to suspend. Must be a positive integer.
19
+ * The duration to suspend, in milliseconds . Must be a positive integer.
15
20
*/
16
21
inline def sleep (millis : Long )(using AsyncOperations , Async ): Unit =
17
22
summon[AsyncOperations ].sleep(millis)
18
23
19
- /** Suspends the current [[Async ]] context for at least [[ millis ]] milliseconds .
24
+ /** Suspends the current [[Async ]] context for `duration` .
20
25
* @param duration
21
26
* The duration to suspend. Must be positive.
22
27
*/
You can’t perform that action at this time.
0 commit comments