Pdef .pause and .resume in a single code block?

Hi again,

I am pausing a playing Pdef and want resume it 16 beats later.
The following only works if the lines are executed separately, but not
as a code block:
(
Pdef(\something).pause;
Pdef(\something).resume(t, quant:[1, 16]);
)
I suspect some concurrency or some scheduling issue that I am not aware
of. Is there a better way to achieve the above, or a workaround?

Thanks a lot!
Peter

Schedule the resume for 16 beats later:

t.sched(16, { Pdef(\something).resume(t, quant: 1) });

hjh