Introducing Unit!
authorHans Fugal <fugalh@fb.com>
Sat, 25 Apr 2015 01:10:49 +0000 (18:10 -0700)
committerAlecs King <int@fb.com>
Mon, 27 Apr 2015 23:54:11 +0000 (16:54 -0700)
Summary: title

Test Plan: tests

Reviewed By: hannesr@fb.com

Subscribers: exa, folly-diffs@, jsedgwick, yfeldblum, chalfant

FB internal diff: D2022859

Signature: t1:2022859:1429920863:0d3afce9779a790baf246de97f98812e23e1574d

folly/futures/Try.h
folly/futures/Unit.h [new file with mode: 0644]

index fad92e390ef5b53d763441fd0eaeb10b8853d9b1..1fd13c025a1baf1725ebd41f3868e67a36412e7f 100644 (file)
@@ -24,6 +24,7 @@
 #include <folly/Memory.h>
 #include <folly/futures/Deprecated.h>
 #include <folly/futures/FutureException.h>
+#include <folly/futures/Unit.h>
 
 namespace folly {
 
diff --git a/folly/futures/Unit.h b/folly/futures/Unit.h
new file mode 100644 (file)
index 0000000..a01aa20
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+ * Copyright 2015 Facebook, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#pragma once
+namespace folly {
+
+struct Unit {};
+
+}