mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-24 07:26:51 +03:00
clay: add option to skip queue
Makes it so that |cancel %force skips the next thing in the queue if you're not in the middle of something. If you are in the middle of something, it skips the thing you're in the middle of (just like naked |cancel). This should resolve issues where |cancel doesn't drain the queue.
This commit is contained in:
parent
7415a2f66a
commit
1599937c81
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4fb8003d603f01ed63813d04b0049fe145be0ee2509fbc8ac16bedf5fca8a335
|
||||
size 13073371
|
||||
oid sha256:ad8493489fa46102c2fe05a633b344c6d40cd98c5fc2c1f6af491902a75a2458
|
||||
size 13082944
|
||||
|
@ -7,5 +7,5 @@
|
||||
::::
|
||||
::
|
||||
:- %say
|
||||
|= *
|
||||
[%kiln-cancel ~]
|
||||
|= [* a=$@(~ [@tas ~]) *]
|
||||
[%kiln-cancel ?@(a %foo -.a)]
|
||||
|
@ -154,8 +154,8 @@
|
||||
abet:abet:(merge:(work syd) ali sud cas gim)
|
||||
::
|
||||
++ poke-cancel
|
||||
|= ~
|
||||
abet:(emit %pass /cancel %arvo %c [%drop %foo])
|
||||
|= a=@tas
|
||||
abet:(emit %pass /cancel %arvo %c [%drop a])
|
||||
::
|
||||
++ poke-info
|
||||
|= {mez/tape tor/(unit toro)}
|
||||
|
@ -4175,7 +4175,11 @@
|
||||
~? ?=(^ act.ruf)
|
||||
[%clay-cancelling hen -.req -.eval-data]:u.act.ruf
|
||||
=. act.ruf ~
|
||||
?~ cue.ruf
|
||||
?: =(~ cue.ruf)
|
||||
[~ ..^$]
|
||||
?: =(%force des.req)
|
||||
=^ queued cue.ruf ~(get to cue.ruf)
|
||||
~& [%dropping-hard [duct -.task]:p.queued cue-length=~(wyt in cue.ruf)]
|
||||
[~ ..^$]
|
||||
=/ =duct duct:(need ~(top to cue.ruf))
|
||||
[[duct %pass /queued-request %b %wait now]~ ..^$]
|
||||
|
Loading…
Reference in New Issue
Block a user