뽀삐2
뽀삐2
Explore posts from servers
MModular
Created by 뽀삐2 on 9/30/2023 in #questions
how to use async in mojo?
async fn add_three(a: Int, b: Int, c: Int) -> Int:
let sum:Int = a + b + c;
return sum

async fn main():
let task: Coroutine[Int] = add_three(1, 2, 3)
let result:Int = await task
print(result)
async fn add_three(a: Int, b: Int, c: Int) -> Int:
let sum:Int = a + b + c;
return sum

async fn main():
let task: Coroutine[Int] = add_three(1, 2, 3)
let result:Int = await task
print(result)
I did what mojo bot told me to do, but I got the error below.
/__w/modular/modular/Kernels/mojo/builtin/_startup.mojo:70:1: error: caller input parameter #0 has type '!kgen.signature<() async -> !lit.none>' but callee expected type '!kgen.signature<() -> !lit.none>'
mojo: error: failed to run the pass manager
/__w/modular/modular/Kernels/mojo/builtin/_startup.mojo:70:1: error: caller input parameter #0 has type '!kgen.signature<() async -> !lit.none>' but callee expected type '!kgen.signature<() -> !lit.none>'
mojo: error: failed to run the pass manager
5 replies
MModular
Created by 뽀삐2 on 9/9/2023 in #questions
mac m1 not support?
when I try install mojo sdk then it shows me
Sorry, this system is not recognized. Please visit https://www.modular.com/mojo to learn about supported platforms. You can also build and run a Mojo container by following instructions at https://github.com/modularml/mojo.
Sorry, this system is not recognized. Please visit https://www.modular.com/mojo to learn about supported platforms. You can also build and run a Mojo container by following instructions at https://github.com/modularml/mojo.
3 replies
CDCloudflare Developers
Created by 뽀삐2 on 9/2/2023 in #general-help
Cloudflare Stream cost
Does Cloudflare Stream charge $1 per 1,000 minutes of streaming regardless of the number of viewers when streaming with the whip protocol?
1 replies
CDCloudflare Developers
Created by 뽀삐2 on 6/7/2023 in #general-help
cloudflare stream cost?
Hi, does cloudflare stream charge $1 per 1000 minutes regardless of the number of viewers? I am currently confused by the article below. https://community.cloudflare.com/t/video-hosting/332294
3 replies