package capnp-rpc
Cap'n Proto is a capability-based RPC system with bindings for many languages
Install
Dune Dependency
Authors
Maintainers
Sources
capnp-rpc-2.1.tbz
sha256=4b59a4147cf6e49c650dbfa4cdb918aec3be69cffd1ef6b5c818584464feb987
sha512=69114597e9cd8ad42c72c1751796b216f98f2a9f09f50a0628b4a3259c2f9b169fd47a73be7b76cfda298a6c202bc79762116865272e35ca0d0914242ace34d7
doc/capnp-rpc.proto/Capnp_rpc_proto/RC/index.html
Module Capnp_rpc_proto.RC
Source
A ref-count type that raises an exception on overflow.
A number used as a reference count.
leaked
is used to represent a ref-count that is invalid because we detected a GC leak.
sum ~pp t d
is t + d
. Raises an exception (including pp
) if this would overflow or become negative, or if t
is zero
or leaked
.
succ ~pp t
is add ~pp t 1
.
pred ~pp t
is add ~pp t (-1)
.
is_zero t
is true
if the ref-count is zero (the resource should be released). is_zero leaked = false
, since whatever detected the leak should free it.
check ~pp t
raises an exception (including pp
) if t
is zero or leaked. Useful in sanity checks.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>