스레드 모듈 (thread)스레드 모듈 (thread) thread 모듈은 Lua에 내장된 코루틴(coroutine)을 기반으로 구현되며, 일반적인 의미의 멀티스레딩이 아닙니다. 작업 디스패치 (thread.dispatch) 현재 작업 ID 가져오기 (thread.current_id) 큐에서 작업 제거 (thread.kill) 다른 작업이 끝날 때까지 블로킹 대기 (thread.wait) 이벤트 리스너 등록 (thread.register_event) 이벤트 리스너 등록 해제 (thread.unregister_event) thread 예제 코드