wit-bindgen-cli 0.57.1

CLI tool to generate bindings for WIT documents and the component model.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System.Diagnostics;
using System.Runtime.InteropServices;

namespace TestWorld.wit.Exports.my.test
{
    public class IExportsImpl : IIExports
    {
        public static async Task PendingImport(FutureReader future)
        {
            Console.WriteLine("Test: Waiting on pending import future...");
            await future.Read();
            Console.WriteLine("Test: Pending import future completed.");
        }
    }
}