Concurrency

PyAsyncio

Python stdlib module — asyncio. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.all_tasks()Neutral
#
Signature
all_tasks(loop)

Return a set of all tasks for the loop.

.as_completed()Neutral
#
Signature
as_completed(fs, timeout)

Return an iterator whose values are coroutines.

.create_subprocess_exec()Neutral
#
Signature
create_subprocess_exec(program, args, stdin, stdout, stderr, limit, kwds)

create_subprocess_exec function.

.create_subprocess_shell()Neutral
#
Signature
create_subprocess_shell(cmd, stdin, stdout, stderr, limit, kwds)

create_subprocess_shell function.

.create_task()Neutral
#
Signature
create_task(coro, name, context)

Schedule the execution of a coroutine object in a spawn task.

.current_task()Neutral
#
Signature
current_task(loop)

Return a currently executed task.

.ensure_future()Neutral
#
Signature
ensure_future(coro_or_future, loop)

Wrap a coroutine or an awaitable in a future.

.gather()Neutral
#
Signature
gather(coros_or_futures, return_exceptions)

Return a future aggregating results from the given coroutines/futures.

.get_child_watcher()Neutral
#
Signature
get_child_watcher()

Equivalent to calling get_event_loop_policy().get_child_watcher().

.get_event_loop()Neutral
#
Signature
get_event_loop()

Return an asyncio event loop.

Fully-Qualified Names

FQNField
asynciofqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import asyncio