isExecuting returns true if it's executing on the current thread. The
only way you can do that is by enabling queue profiling using:
dispatchQueue.profile(true);
and then looking at the metrics of the queue like:
size = dispatchQueue.metrics().enqueued - dispatchQueue.metrics().dequeued;
> --
> You received this message because you are subscribed to the Google Groups
> "hawtdispatch" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
hawtdispatch...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>
--
Hiram Chirino
Engineering | Red Hat, Inc.
hchi...@redhat.com |
fusesource.com |
redhat.com
skype: hiramchirino | twitter: @hiramchirino
blog: Hiram Chirino's Bit Mojo