Skip to content
Permalink
Browse files

Fix $*SCHEDULER.cue( times => 5 )

  • Loading branch information...
lizmat committed May 8, 2019
1 parent 44a6468 commit 48a12551f9bb9618ec1e4bf999d5f52fa31f7920
Showing with 6 additions and 7 deletions.
  1. +6 −7 src/core/ThreadPoolScheduler.pm6
@@ -1008,13 +1008,12 @@ my class ThreadPoolScheduler does Scheduler {
die("Cannot specify :at and :in at the same time"),
nqp::stmts(
nqp::if(
nqp::isconcrete($at),
nqp::unless(
nqp::isconcrete($at := validate-seconds($at)),
(return Cancellation.new(async_handles => []))
),
nqp::unless(
nqp::isconcrete($in := validate-seconds($in)),
nqp::isconcrete($at)
&& nqp::not_i(nqp::isconcrete($at := validate-seconds($at))),
(return Cancellation.new(async_handles => [])),
nqp::if(
nqp::isconcrete($in)
&& nqp::not_i(nqp::isconcrete($in := validate-seconds($in))),
(return Cancellation.new(async_handles => []))
)
),

0 comments on commit 48a1255

Please sign in to comment.
You can’t perform that action at this time.