Skip to content

Commit 0cbcbed

Browse files
authored
Merge pull request #32 from sid597/fix-token
update token usage
2 parents 429295b + 3e75a62 commit 0cbcbed

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/app/electric_flow.cljc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@
142142

143143

144144
(e/defn Render-with-webgpu []
145-
(let [nu (e/watch !offset)
146-
spend (e/Token nu)
145+
(let [[spend e] (e/Token offset)
147146
dv (e/snapshot device)
148147
con (e/snapshot context)
149148
fmat (e/snapshot format)]
@@ -155,8 +154,8 @@
155154
(when (some? spend)
156155
(let [rects-data (flatten (into [] (vals all-rects)))
157156
rects-ids (into [] (keys all-rects))
158-
[cx cy] nu
159-
[off-x off-y] (spend (e/Task (m/sleep 25 nu)))
157+
[cx cy] offset
158+
[off-x off-y] (spend (e/Task (m/sleep 25 offset)))
160159
rx (e/amb cx off-x)
161160
ry (e/amb cy off-y)
162161
texts (reduce

0 commit comments

Comments
 (0)