• 1 Post
  • 250 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle





  • Can we stop referring to the “what color is your function” post for languages it doesn’t apply for? Contrary to Javascript (where it does apply), Rust with tokio has adapters for both async -> sync (Runtime::spawn_blocking) and sync -> async (Runtime::block_on). It probably isn’t a good idea to overuse spawn_blocking but calling an async function from a sync one is literally no problem.










  • It works for me, it’s a bit janky though because of YouTube’s custom link handler. You have to either open videos in new tabs or reload the page after clicking the video for it to load correctly.

    Tbh I don’t actually know if it’s supposed to remove ads, I use it to get the better (Safari built in) video player that can do Picture in Picture and what not.