jjs-dev / jjs-dev/commons

rpc: Tx projections

Open
#4 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

StreamingTx should have a method like `as_event`, with roughly following API (trait bounds and errors omitted):
```rust
impl StreamingTx {
pub fn as_event_sender(&mut self) -> EventSender;
}

pub struct EventSender<'a, E>(&'a mut StreamingTx);

impl EventSender{
pub async fn send_event(&mut self, ev: E);
// note - no `finish` method
}

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.