public async Task LoadTexturesAsync(IAwaitCaller awaitCaller = null) { awaitCaller = awaitCaller ?? new ImmediateCaller(); var textures = TextureDescriptorGenerator.Get().GetEnumerable(); foreach (var param in textures) { var tex = await TextureFactory.GetTextureAsync(param, awaitCaller); } }
public async Task LoadTexturesAsync(IAwaitCaller awaitCaller) { if (awaitCaller == null) { throw new ArgumentNullException(); } var textures = TextureDescriptorGenerator.Get().GetEnumerable(); foreach (var param in textures) { var tex = await TextureFactory.GetTextureAsync(param, awaitCaller); } }