General

Profile

phigrofi (Philipp Großelfinger)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 0 1

Activity

06/30/2022

10:58 AM Ruby Feature #18814: Ractor: add method to query incoming message queue size

I created a PR for this issue: https://github.com/ruby/ruby/pull/5973
phigrofi (Philipp Großelfinger)
10:44 AM Ruby Feature #17679: Ractor incoming channel can consume unlimited resources
I created a different issue, which would help to query to incoming queue size from outside of a ractor: https://bugs.ruby-lang.org/issues/18814
Maybe this could help you.
phigrofi (Philipp Großelfinger)

06/02/2022

11:59 AM Ruby Feature #18814: Ractor: add method to query incoming message queue size
For instance in GO it is possible to query the current size of a channel:
``` go
c := make(chan int, 100)
for i := 0; i < 34; i++ {
c <- 0
}
fmt.Println(len(c)) // => 34
```
phigrofi (Philipp Großelfinger)
10:57 AM Ruby Feature #18814 (Assigned): Ractor: add method to query incoming message queue size
## Abstract
A simple method to query the current size of a Ractor's incoming queue from outside. Can be used to decide on the sender's side if a message is sent or postponed.
## Background
Ractors have an infinite incoming mess...
phigrofi (Philipp Großelfinger)

Also available in: Atom