Activity Forums Salesforce® Discussions What is thread sleep in Salesforce?

  • krati

    Member
    January 24, 2020 at 2:28 pm

    A sleeping thread in a multi-tenant world, is one which cannot be used by another customer.

    • This reply was modified 4 years, 2 months ago by  krati vishnoi.
  • Ratnesh

    Member
    January 24, 2020 at 2:45 pm

    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.

  • Aditya

    Member
    January 24, 2020 at 3:02 pm

    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.

Popular Salesforce Blogs

Popular Salesforce Videos