code: async def kill_actor(request, aid, timeout=5):
      '''Kill an actor with id ``aid``.
      This command can only be executed by the arbiter,
      therefore a valid sintax is only::
  
          send('arbiter', 'kill_actor', 'abc')
  
      Return 'killed abc` if successful, otherwise it returns ``None``.
      '''
      arb = request.actor
      if arb.is_arbiter():
          await arb.send(aid, 'stop')
          proxy = await async_while(timeout, arb.get_actor, aid)
          if proxy:
              arb.logger.warning('Could not kill actor %s', aid)
          else:
              return 'killed %s' % aiync def kill_actor(request, aid, timeout=5):
      '''Kill an actor with id ``aid``.
      This command can only be executed by the arbiter,
      therefore a valid sintax is only::
  
          send('arbiter', 'kill_actor', 'abc')
  
      Return 'killed abc` if successful, otherwise it returns ``None``.
      '''
      arb = request.actor
      if arb.is_arbiter():
          await arb.send(aid, 'stop')
          proxy = await async_while(timeout, arb.get_actor, aid)
          if proxy:
              arb.logger.warning('Could not kill actor %s', aid)
          else:
              return 'killed %s' % aid
docs: Kill an actor with id ``aid``.
      This command can only be executed by the arbiter,
      therefore a valid sintax is only::
  
          send('arbiter', 'kill_actor', 'abc')
  
      Return 'killed abc` if successful, otherwise it returns ``None``.