mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
updated news.txt
This commit is contained in:
@@ -30,7 +30,7 @@ kqueue has not been implemented yet but will be in the future.
|
||||
The Asynchronous IO API provides both
|
||||
a callback interface and an interface which allows you to write code as you
|
||||
would if you were writing synchronous code. The latter is done through
|
||||
the use of an ``await`` keyword which behaves similar to C#'s await. The
|
||||
the use of an ``await`` macro which behaves similar to C#'s await. The
|
||||
following is a very simple chat server demonstrating Nimrod's new async
|
||||
capabilities.
|
||||
|
||||
@@ -59,6 +59,11 @@ capabilities.
|
||||
serve()
|
||||
runForever()
|
||||
|
||||
|
||||
Note that this feature has been implemented with Nimrod's macro system and so
|
||||
``await`` and ``async`` are no keywords.
|
||||
|
||||
|
||||
Library Additions
|
||||
-----------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user