Rust Lazy init async string?

前端 未结 0 742
眼角桃花
眼角桃花 2021-02-15 16:56

I want to cache JWKS between async globally between threads. So I did this:

use std::lazy::{Lazy, OnceCell};

static JWKS         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题