Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2088)

Unified Diff: web/inc/luci-sleep-promise/luci-sleep-promise.html

Issue 2570963003: Revert of Rewrite LogDog log viewer app. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « web/inc/logdog-stream/logdog-error.html ('k') | web/inc/luci-sleep-promise/promise.ts » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: web/inc/luci-sleep-promise/luci-sleep-promise.html
diff --git a/web/inc/luci-sleep-promise/luci-sleep-promise.html b/web/inc/luci-sleep-promise/luci-sleep-promise.html
new file mode 100644
index 0000000000000000000000000000000000000000..0df10b3d9d294b699dc18c8f856f7492734553d0
--- /dev/null
+++ b/web/inc/luci-sleep-promise/luci-sleep-promise.html
@@ -0,0 +1,24 @@
+<!--
+ Copyright 2016 The LUCI Authors. All rights reserved.
+ Use of this source code is governed under the Apache License, Version 2.0
+ that can be found in the LICENSE file.
+ -->
+
+<link rel="import" href="../bower_components/polymer/polymer.html">
+
+<!--
+ Generates a Promise object that resolves after a specified delay.
+-->
+<dom-module id="luci-sleep-promise">
+
+<script>
+ "use strict";
+
+ function LuciSleepPromise(delay) {
+ return new Promise(function(resolve, reject) {
+ setTimeout(resolve, delay);
+ });
+ }
+</script>
+
+</dom-module>
« no previous file with comments | « web/inc/logdog-stream/logdog-error.html ('k') | web/inc/luci-sleep-promise/promise.ts » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698