crates/wit-parser/tests/ui/streams-and-futures.wit
raw| 1 | package foo:streams-and-futures; |
| 2 | |
| 3 | interface streams-and-futures { |
| 4 | type t1 = stream<u8>; |
| 5 | type t2 = stream<stream<string>>; |
| 6 | type t3 = future; |
| 7 | type t4 = future<list<u8>>; |
| 8 | type t5 = option<stream<future>>; |
| 9 | resource r1; |
| 10 | type t6 = stream<r1>; |
| 11 | type t7 = future<result<r1>>; |
| 12 | type t8 = stream; |
| 13 | |
| 14 | foo: func(x: stream<u32>, y: t6) -> future<result<list<string>, string>>; |
| 15 | } |