async def METHOD_NAME(actor_executor: ActorExecutor) -> None:
    # Arrange
    def func(x):
        return x + 1
    # Act
    actor_executor.queue_for_executor(func, 1)
    actor_executor.run_in_executor(func, 2)
    actor_executor.cancel_all_tasks()
    # Assert
    assert not actor_executor.has_active_tasks()
    assert not actor_executor.has_queued_tasks()