py_event_worker (erlang_python v3.0.0)

View Source

Event worker for Erlang-native asyncio event loop.

This gen_server implements the scalable I/O model with one worker per Python context. Each worker: - Receives {select, FdRes, Ref, ready_input|ready_output} directly from enif_select - Handles {timeout, TimerRef} messages for timer dispatch - Manages timers via erlang:send_after to self()

Summary

Functions

code_change(OldVsn, State, Extra)

get_loop_ref(Pid)

get_worker_id(Pid)

handle_call(Request, From, State)

handle_cast(Msg, State)

handle_info(Info, State)

init(_)

start_link(WorkerId, LoopRef)

start_link(WorkerId, LoopRef, Opts)

stop(Pid)

terminate(Reason, State)