]> gitweb.factorcode.org Git - factor.git/commit
retries: Swap the order of args to retries combinator
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 1 Apr 2021 04:00:41 +0000 (23:00 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 1 Apr 2021 04:00:41 +0000 (23:00 -0500)
commit11799c10176b7b78477b614e0a2606e83cec0bcf
tree5ebd3a920b4060876d2f6ce4ae4de1908a30fd1a
parentfb2f131384d1751a9276cef3bbbc8f4f1807f4b7
retries: Swap the order of args to retries combinator

[ "/bin" XATTR_NOFOLLOW swapd list-xattrs-impl ]
<immediate> { 2 4 100000 } retries .

    [ 2 = [ "not 2!" throw ] unless ]
    10 20 <random-wait> 3 retries

looks better than

    [ 2 = [ "not 2!" throw ] unless ]
    3 10 20 <random-wait> retries ! old
basis/retries/retries-tests.factor
basis/retries/retries.factor
basis/unix/xattrs/macos/macos.factor