summaryrefslogtreecommitdiff
path: root/main/core/src/util/Watched.scala
diff options
context:
space:
mode:
Diffstat (limited to 'main/core/src/util/Watched.scala')
-rw-r--r--main/core/src/util/Watched.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/main/core/src/util/Watched.scala b/main/core/src/util/Watched.scala
new file mode 100644
index 00000000..29be53c3
--- /dev/null
+++ b/main/core/src/util/Watched.scala
@@ -0,0 +1,8 @@
+package mill.util
+
+import mill.api.PathRef
+
+case class Watched[T](value: T, watched: Seq[PathRef])
+object Watched{
+ implicit def readWrite[T: upickle.default.ReadWriter] = upickle.default.macroRW[Watched[T]]
+}