Activity › Forums › Salesforce® Discussions › What is thread sleep in Salesforce?
-
What is thread sleep in Salesforce?
Posted by Aditya on January 24, 2020 at 2:15 PMWhat is thread sleep in Salesforce?
Aditya replied 6 years, 4 months ago 3 Members · 3 Replies -
3 Replies
-
A sleeping thread in a multi-tenant world, is one which cannot be used by another customer.
-
This reply was modified 6 years, 4 months ago by
krati vishnoi.
-
This reply was modified 6 years, 4 months ago by
- [adinserter block='9']
-
Sometimes we need make apex thread to sleep for a while, sush as testing if the soql with [For Update] works,and as we know the sfdc do not offer a method to sleep the thread.
-
Salesforce is Multi-tenant Architecture in which sleeping thread is thread which cannot be use by another customer. It would be great if we had a way of sleeping the running thread server side while we waited on something to happen inside of Apex code. When working with objects that have triggers, the triggers run separately.
Log In to reply.