Skip to content

Commit 3233638

Browse files
committed
document
1 parent f379cb0 commit 3233638

File tree

5 files changed

+26
-13
lines changed

5 files changed

+26
-13
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: nanonext
22
Type: Package
33
Title: NNG (Nanomsg Next Gen) Lightweight Messaging Library
4-
Version: 0.13.6.9000
4+
Version: 0.13.6.9002
55
Description: R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is
66
a socket library implementing 'Scalability Protocols', a reliable,
77
high-performance standard for common communications patterns including

NAMESPACE

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export(recv_aio)
7575
export(recv_aio_signal)
7676
export(reply)
7777
export(request)
78-
export(request_promise)
78+
export(request2)
7979
export(request_signal)
8080
export(send)
8181
export(send_aio)

NEWS.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# nanonext 0.13.6 (development)
1+
# nanonext 0.13.6.9002 (development)
2+
3+
* Integrates with the `later` package to provide the foundation for truly event-driven (non-polling) promises (thanks @jcheng5 for the initial prototype in #28), where side-effects are enacted asynchronously upon aio completion.
4+
* Adds `request2()` for creating a request that may be turned into an event-driven promise.
25

36
# nanonext 0.13.6
47

R/context.R

+13-7
Original file line numberDiff line numberDiff line change
@@ -270,14 +270,20 @@ request_signal <- function(context,
270270
timeout = NULL)
271271
data <- .Call(rnng_request_signal, context, data, cv, send_mode, recv_mode, timeout, environment())
272272

273+
#' Request2 (RPC Client for Req/Rep Protocol)
274+
#'
275+
#' \strong{request2} is the next generation request function that optionally
276+
#' takes a condition variable for signalling, and supports event-driven
277+
#' promises.
278+
#'
273279
#' @rdname request
274280
#' @export
275281
#'
276-
request_promise <- function(context,
277-
data,
278-
cv,
279-
send_mode = c("serial", "raw", "next"),
280-
recv_mode = c("serial", "character", "complex", "double",
281-
"integer", "logical", "numeric", "raw", "string"),
282-
timeout = NULL)
282+
request2 <- function(context,
283+
data,
284+
cv = NULL,
285+
send_mode = c("serial", "raw", "next"),
286+
recv_mode = c("serial", "character", "complex", "double",
287+
"integer", "logical", "numeric", "raw", "string"),
288+
timeout = NULL)
283289
data <- .Call(rnng_request_promise, context, data, cv, send_mode, recv_mode, timeout, environment())

man/request.Rd

+7-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)