Skip to content

Draft: zb: Socket trait to make use of async/await

Zeeshan Ali Khan requested to merge zeenix/zbus:wip/handshake+async-await into main

WIP: zb: Socket trait to make use of async/await

This will be the first step towards solving #125: Port internal handshake API to make use of async/await, since the handshake code uses Socket.

However, while working on this I lost motivation to work on this for now for 3 main reasons:

  1. This requires an API break and we just fininished 2.0 a few months ago after a long time and a lot of hard work. So 3.0 is not on the radar anytime soon.
  2. As you can see in the code, we'll need to still implement Futures manually for sending and receiving data with FDs on Unix platforms. This sort of beats the point of the whole exercise.
  3. Will likely require unstable features from nightly.
Edited by Zeeshan Ali Khan

Merge request reports