Skip to content

Instantly share code, notes, and snippets.

View JohnDoneth's full-sized avatar

John Doneth JohnDoneth

View GitHub Profile
#![feature(async_await)]
use tokio;
use tokio::sync::lock::{Lock, LockGuard};
use core::task::{Context, Poll};
use std::future::Future;
use std::pin::Pin;
use std::sync::Arc;