Adding thread.sleep to API

Is there a way to add thread.sleep () to an API?.

  Discussion posts and replies are publicly visible