79332744

Date: 2025-01-06 10:30:36
Score: 2
Natty:
Report link

Use Box::pin:

async fn test(data: i32) -> i32 {
    if data == 0 {
        0
    } else {
        Box::pin(test(data - 1)).await
    }
}
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: FliegendeWurst