To go with the new System.Queueable interface, I'm looking for the analogy of:
Is there a
System.isQueued() or something?
Spring '16 brings us a new method:
System.isQueueable() which takes care of this requirement.
As of Spring '16,
isBatch() does NOT return
true from inside
I think that better is option is use this query, to veryfy if your class is in the queue
SELECT Id, ApexClassId from AsyncApexJob WHERE JobType = 'Queueable' AND Status = 'Queued' AND ApexClassId in (SELECT Id FROM ApexClass WHERE NAME = 'Imp')