이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
탐색
도움말
로그인
jmg
/
aiokq
보기
1
좋아요
0
포크
0
코드
이슈
0
풀 리퀘스트
0
릴리즈
0
위키
활동
소스 검색
add sample program testing if a directory can be watched
main
John-Mark Gurney
4 년 전
부모
bae7061560
커밋
9e082a8487
1개의 변경된 파일
과
14개의 추가작업
그리고
0개의 파일을 삭제
분할 보기
Diff Options
Show Stats
Download Patch File
Download Diff File
+14
-0
misc/kqdir.py
+ 14
- 0
misc/kqdir.py
파일 보기
@@ -0,0 +1,14 @@
import aiokq
import asyncio
import os
fd = os.open('.', os.O_RDONLY)
async def foo():
async with aiokq.watch_file(fd) as wf:
print('a')
await wf()
print('b')
loop = asyncio.get_event_loop()
loop.run_until_complete(foo())
쓰기
미리보기
불러오는 중...
취소
저장