mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-09 21:28:22 +00:00
19 lines
496 B
Python
19 lines
496 B
Python
{.BaseEventLoop!; .Server!} = import "base_events"
|
|
{.iscoroutine;. iscoroutinefunction;} = pyimport "coroutines"
|
|
{
|
|
.AbstractEventLoop!;
|
|
.AbstractEventLoopPolicy!;
|
|
.AbstractServer!;
|
|
.Handle!;
|
|
.TimerHandle!;
|
|
} = pyimport "events"
|
|
{
|
|
.LifoQueue!;
|
|
.PriorityQueue!;
|
|
.Queue!;
|
|
.QueueEmpty;
|
|
.QueueFull;
|
|
} = pyimport "queues"
|
|
{.Runner!; .run!;} = pyimport "runners"
|
|
{.Task!; .current_task!; .gather!; .sleep!;} = pyimport "tasks"
|
|
{.to_thread!;} = pyimport "threads"
|