mirror of https://github.com/sbt/sbt.git
This adds `Def.promise` a facility that wraps `scala.concurrent.Promise`. Project layer, there's an implicit for task-that-returns-promise (`Def.Initialize[Task[PromiseWrap[A]]]`) that would inject `await` method, which returns a task. This is a special task that is tagged with `Tags.Sentinel` so that it will bypass the concurrent restrictions. Since there's no CPU- or IO-bound work, this should be ok. The purpose of this promise for long-running task to communicate with another task midway. |
||
|---|---|---|
| .. | ||
| src/main/scala/sbt | ||
| NOTICE | ||