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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archive notice

This crate has been merged into the main stream of compio.

compio-compat

Run compio in other async runtimes.

Usage

use compio_compat::{RuntimeCompat, TokioAdapter};

#[tokio::main]
async fn main() {
    // Create a compio runtime:
    let runtime = compio::runtime::Runtime::new().unwrap();
    // Create the compat layer:
    let runtime = RuntimeCompat::<TokioAdapter>::new(runtime).unwrap();
    // Execute your future:
    runtime.execute(async {
        // Run compio-specific code
    }).await;
}

About

A compat layer to run compio on other runtimes

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages