summaryrefslogtreecommitdiff
path: root/src/bindings/mono/eina_mono/eina_promises.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/mono/eina_mono/eina_promises.cs')
-rw-r--r--src/bindings/mono/eina_mono/eina_promises.cs19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/bindings/mono/eina_mono/eina_promises.cs b/src/bindings/mono/eina_mono/eina_promises.cs
index a2cef0d..4b14a0d 100644
--- a/src/bindings/mono/eina_mono/eina_promises.cs
+++ b/src/bindings/mono/eina_mono/eina_promises.cs
@@ -1,3 +1,18 @@
1/*
2 * Copyright 2019 by its authors. See AUTHORS.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
1using System; 16using System;
2using System.Runtime.InteropServices; 17using System.Runtime.InteropServices;
3using System.Collections.Generic; 18using System.Collections.Generic;
@@ -365,11 +380,11 @@ public class Future
365 { 380 {
366 SanityChecks(); 381 SanityChecks();
367 System.Collections.Generic.IList<ResolvedCb> cbsList = cbs.ToList(); 382 System.Collections.Generic.IList<ResolvedCb> cbsList = cbs.ToList();
368 FutureDesc[] descs = new FutureDesc[cbsList.Count() + 1]; // +1 due to the null-cb terminating descriptor. 383 FutureDesc[] descs = new FutureDesc[cbsList.Count + 1]; // +1 due to the null-cb terminating descriptor.
369 int i = 0; 384 int i = 0;
370 try 385 try
371 { 386 {
372 for (; i < cbsList.Count(); i++) 387 for (; i < cbsList.Count; i++)
373 { 388 {
374 ResolvedCb cb = cbsList[i]; 389 ResolvedCb cb = cbsList[i];
375 descs[i].cb = NativeResolvedCbDelegate; 390 descs[i].cb = NativeResolvedCbDelegate;