mirror of
https://github.com/penpot/penpot.git
synced 2025-05-20 07:26:10 +02:00
🎉 Add full teams administration.
This commit is contained in:
parent
f6830b4b85
commit
142036891a
62 changed files with 3175 additions and 1606 deletions
|
@ -8,7 +8,9 @@
|
|||
;; Copyright (c) 2020 UXBOX Labs SL
|
||||
|
||||
(ns app.util.timers
|
||||
(:require [beicon.core :as rx]))
|
||||
(:require
|
||||
[beicon.core :as rx]
|
||||
[promesa.core :as p]))
|
||||
|
||||
(defn schedule
|
||||
([func]
|
||||
|
@ -19,6 +21,11 @@
|
|||
(-dispose [_]
|
||||
(js/clearTimeout sem))))))
|
||||
|
||||
(defn asap
|
||||
[f]
|
||||
(-> (p/resolved nil)
|
||||
(p/then f)))
|
||||
|
||||
(defn interval
|
||||
[ms func]
|
||||
(let [sem (js/setInterval #(func) ms)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue