public static Task <string> CreateRoomAsync(this Multiplayer multiplayer, string roomId, string roomType, bool visible, Dictionary <string, string> roomData) { var tcs = new TaskCompletionSource <string>(); multiplayer.CreateRoom(roomId, roomType, visible, roomData, tcs.SetResult, tcs.SetException); return(tcs.Task); }