































(method) Api.list_users(query: UserQuery): Promise<ApiError | ApiListResponse<User>> (edited)











await myasyncfunction() nothing will execute yet


.then it will create a real promise, which starts executing immediately




Promise(executor) it will call executor




























fn send(addr: net.Address) !void {
var socket = try net.tcpConnectToAddress(addr);
defer socket.close();
_ = try socket.write("message");
}io_mode = .evented the socket will be opened non blocking
defer right?


_ = if the return type is void! in return type, is that like, force?



try requires you to assign its result


defer right? 











fn new<F, Fut>(name: String, cb: F) where F: Fn(Arc<Context>, String) -> Fut + 'static, Fut: Future<Output = CommandResult> + 'static {} and I had another function fn register which needs to call new. Now I need to repeat my rather long traits again


! in return type, is that like, force? Option<T> in rust


_ = if the return type is void 






























