Computer Programming with the Nim Programming Language
Nim’s asynchronous dispatcher The core elements of Nim’s async/await framework are provided by the modules STD/ASYNCDISPATCH and STD/ASYNCFUTURES. These modules provide a dispatcher, a generic Future[T] written in a synchronous style with the await keyword. The ASYNCDISPATCH module implements a global dispatcher (technically one per thread), which is responsible for running the procedures that are registered when an asynchronous procedure is suspended, other asynchronous procedures will be run by the dispatcher. The generic future[T] data type The Future[T] data type, also called Promise, Delay or Deferred0 码力 | 865 页 | 7.45 MB | 1 年前3
Computer Programming with the Nim Programming Language
Nim’s asynchronous dispatcher The core elements of Nim’s async/await framework are provided by the modules STD/ASYNCDISPATCH and STD/ASYNCFUTURES. These modules provide a dispatcher, a generic Future[T] written in a synchronous style with the await keyword. The ASYNCDISPATCH module implements a global dispatcher (technically one per thread), which is responsible for running the procedures that are registered when an asynchronous procedure is suspended, other asynchronous procedures will be run by the dispatcher. The generic future[T] data type The Future[T] data type, also called Promise, Delay or Deferred0 码力 | 784 页 | 2.13 MB | 1 年前3
Computer Programming with the Nim Programming Language. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446 Nim’s asynchronous dispatcher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Nim’s asynchronous dispatcher The core elements of Nim’s async/await framework are provided by the modules sᴛᴅ/ᴀsʏɴᴄᴅɪsᴘᴀᴛᴄʜ and sᴛᴅ/ᴀsʏɴᴄғᴜᴛᴜʀᴇs. These modules provide a dispatcher, a generic Future[T] in a synchronous style with the await key word. The ᴀsʏɴᴄᴅɪsᴘᴀᴛᴄʜ module implements a global dispatcher (technically one per thread), which is responsible for running the procedures that are registered0 码力 | 512 页 | 3.54 MB | 1 年前3
Computer Programming with the Nim Programming Language. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446 Nim’s asynchronous dispatcher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Nim’s asynchronous dispatcher The core elements of Nim’s async/await framework are provided by the modules sᴛᴅ/ᴀsʏɴᴄᴅɪsᴘᴀᴛᴄʜ and sᴛᴅ/ᴀsʏɴᴄғᴜᴛᴜʀᴇs. These modules provide a dispatcher, a generic Future[T] in a synchronous style with the await key word. The ᴀsʏɴᴄᴅɪsᴘᴀᴛᴄʜ module implements a global dispatcher (technically one per thread), which is responsible for running the procedures that are registered0 码力 | 512 页 | 3.53 MB | 1 年前3
Computer Programming with the Nim Programming Language. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446 Nim’s asynchronous dispatcher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Nim’s asynchronous dispatcher The core elements of Nim’s async/await framework are provided by the modules sᴛᴅ/ᴀsʏɴᴄᴅɪsᴘᴀᴛᴄʜ and sᴛᴅ/ᴀsʏɴᴄғᴜᴛᴜʀᴇs. These modules provide a dispatcher, a generic Future[T] in a synchronous style with the await key word. The ᴀsʏɴᴄᴅɪsᴘᴀᴛᴄʜ module implements a global dispatcher (technically one per thread), which is responsible for running the procedures that are registered0 码力 | 512 页 | 3.50 MB | 1 年前3
Computer Programming with the Nim Programming Language. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446 Nim’s asynchronous dispatcher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Nim’s asynchronous dispatcher The core elements of Nim’s async/await framework are provided by the modules sᴛᴅ/ᴀsʏɴᴄᴅɪsᴘᴀᴛᴄʜ and sᴛᴅ/ᴀsʏɴᴄғᴜᴛᴜʀᴇs. These modules provide a dispatcher, a generic Future[T] in a synchronous style with the await key word. The ᴀsʏɴᴄᴅɪsᴘᴀᴛᴄʜ module implements a global dispatcher (technically one per thread), which is responsible for running the procedures that are registered0 码力 | 512 页 | 3.53 MB | 1 年前3
Computer Programming with the Nim Programming Language. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446 Nim’s asynchronous dispatcher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Nim’s asynchronous dispatcher The core elements of Nim’s async/await framework are provided by the modules sᴛᴅ/ᴀsʏɴᴄᴅɪsᴘᴀᴛᴄʜ and sᴛᴅ/ᴀsʏɴᴄғᴜᴛᴜʀᴇs. These modules provide a dispatcher, a generic Future[T] in a synchronous style with the await key word. The ᴀsʏɴᴄᴅɪsᴘᴀᴛᴄʜ module implements a global dispatcher (technically one per thread), which is responsible for running the procedures that are registered0 码力 | 512 页 | 3.53 MB | 1 年前3
Computer Programming with the Nim Programming Language. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446 Nim’s asynchronous dispatcher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Nim’s asynchronous dispatcher The core elements of Nim’s async/await framework are provided by the modules sᴛᴅ/ᴀsʏɴᴄᴅɪsᴘᴀᴛᴄʜ and sᴛᴅ/ᴀsʏɴᴄғᴜᴛᴜʀᴇs. These modules provide a dispatcher, a generic Future[T] in a synchronous style with the await key word. The ᴀsʏɴᴄᴅɪsᴘᴀᴛᴄʜ module implements a global dispatcher (technically one per thread), which is responsible for running the procedures that are registered0 码力 | 512 页 | 3.55 MB | 1 年前3
Computer Programming with the Nim Programming Language. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446 Nim’s asynchronous dispatcher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Nim’s asynchronous dispatcher The core elements of Nim’s async/await framework are provided by the modules sᴛᴅ/ᴀsʏɴᴄᴅɪsᴘᴀᴛᴄʜ and sᴛᴅ/ᴀsʏɴᴄғᴜᴛᴜʀᴇs. These modules provide a dispatcher, a generic Future[T] in a synchronous style with the await key word. The ᴀsʏɴᴄᴅɪsᴘᴀᴛᴄʜ module implements a global dispatcher (technically one per thread), which is responsible for running the procedures that are registered0 码力 | 512 页 | 3.54 MB | 1 年前3
Computer Programming with the Nim Programming Language. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446 Nim’s asynchronous dispatcher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Nim’s asynchronous dispatcher The core elements of Nim’s async/await framework are provided by the modules sᴛᴅ/ᴀsʏɴᴄᴅɪsᴘᴀᴛᴄʜ and sᴛᴅ/ᴀsʏɴᴄғᴜᴛᴜʀᴇs. These modules provide a dispatcher, a generic Future[T] in a synchronous style with the await key word. The ᴀsʏɴᴄᴅɪsᴘᴀᴛᴄʜ module implements a global dispatcher (technically one per thread), which is responsible for running the procedures that are registered0 码力 | 512 页 | 3.54 MB | 1 年前3
共 28 条
- 1
- 2
- 3













