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