Skip to content
This repository was archived by the owner on Jan 4, 2026. It is now read-only.
This repository was archived by the owner on Jan 4, 2026. It is now read-only.

feature - async io #8

@bengarishodge

Description

@bengarishodge

Description

Async IO is so useful across so many different domains. I want to provide a simple async IO interface.

Basically something simple like this. Honestly this example kind of sucks but I'd like to see something that anyone can understand.

fn main() !void {
  var done: bool = false;
  var read_submitted = false;
  var read_submission_ptr: SubmissionPtr = undefined;
  while (true) {
      if (done) return;
      
      if (!read_submitted) {
         read_submission_ptr = submit_read();
      }

      if(check_read_submission(read_submission_ptr)) {
         done = true;
      }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA new addition

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions