]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Add chansync interfaces
authorMatt Joiner <anacrolix@gmail.com>
Thu, 20 May 2021 10:27:54 +0000 (20:27 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 7 Jun 2021 03:01:40 +0000 (13:01 +1000)
internal/chansync/interfaces.go [new file with mode: 0644]

diff --git a/internal/chansync/interfaces.go b/internal/chansync/interfaces.go
new file mode 100644 (file)
index 0000000..751ba0e
--- /dev/null
@@ -0,0 +1,8 @@
+package chansync
+
+// Here we'll strongly-type channels to assist correct usage, if possible.
+
+type (
+       Signaled <-chan struct{}
+       Done     <-chan struct{}
+)