function hasPendingWorkScope hasPendingWorkScope(): boolean True when running inside a runWithPendingWork scope (i.e. a request). Return Type boolean