slave thread predicate

I was wondering if there is a way to create a predicate function to see if slave threads are being used by a function. 

For example, say I’m using “f peach” on a list of variable length. Is there a way to tell if the slave threads are called? (other than just doing count on the list, and knowing that q will use the master thread if the list is of size 1)

Thanks!

a side note - peach within peach will revert to each within peach.

slave threads cannot update globals, so one hack, at the cost of pollutiion, might be

q)isSlaveThread:{@[{`dummy set 0;0b};::;1b]}

q){isSlaveThread}peach 0 1

11b

q){isSlaveThread}each 0 1

00b