code: async def sleep(self, duration: float=0.0) -> None:
          '''Simple wrapper around `asyncio.sleep()`.'''
          duration = max(0, duration)
  
          if duration > 0:
              Log.debug('sleeping task %s for %.1f seconds', self.name, duration)
              await asyncio.sleep(durationync def sleep(self, duration: float=0.0) -> None:
          '''Simple wrapper around `asyncio.sleep()`.'''
          duration = max(0, duration)
  
          if duration > 0:
              Log.debug('sleeping task %s for %.1f seconds', self.name, duration)
              await asyncio.sleep(duration)
docs: Simple wrapper around `asyncio.sleep()`.