响应式编程概念

术语“响应”是指围绕变化做出反应的编程模型 :

 对I / O事件做出反应的网络组件,对鼠标事件做出反应的UI控制器等。

从这个意义上说,非阻塞是响应式的,因为我们现在处于一种模式中:

组件在操作完成或数据可用时,发出通知,而我们对这些通知作出反应。

The term, “reactive,” refers to programming models that are built around reacting to change  —  network components reacting to I/O events, UI controllers reacting to mouse events, and others. In that sense, non-blocking is reactive, because, instead of being blocked, we are now in the mode of reacting to notifications as operations complete or data becomes available.

你可能感兴趣的:(响应式编程概念)