implementing js style abort cancellation in python - ai-query

python does not ship the exact same thing by default, but i keep wanting the same idea anyway for ai-query.dev