mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
Deprecated asyncio module. Fixed old tests.
This commit is contained in:
@@ -10,6 +10,11 @@ include "system/inclrtl"
|
||||
|
||||
import sockets, os
|
||||
|
||||
##
|
||||
## **Warning:** This module is deprecated since version 0.10.2.
|
||||
## Use the brand new `asyncdispatch <asyncdispatch.html>`_ module together
|
||||
## with the `asyncnet <asyncnet.html>`_ module.
|
||||
|
||||
## This module implements an asynchronous event loop together with asynchronous
|
||||
## sockets which use this event loop.
|
||||
## It is akin to Python's asyncore module. Many modules that use sockets
|
||||
@@ -90,6 +95,8 @@ import sockets, os
|
||||
## var client: Socket
|
||||
## getSocket(s).accept(client)
|
||||
|
||||
{.deprecated.}
|
||||
|
||||
when defined(windows):
|
||||
from winlean import TimeVal, SocketHandle, FD_SET, FD_ZERO, TFdSet,
|
||||
FD_ISSET, select
|
||||
|
||||
Reference in New Issue
Block a user