| 1234567891011121314151617181920212223242526 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- using System;
- using System.Runtime.CompilerServices;
- namespace BansheeEngine
- {
- /** @addtogroup Utility
- * @{
- */
- public partial class AsyncOp
- {
- /// <summary>
- /// Retrieves the value returned by the async operation. Only valid if <see cref="IsCompleted"/> returns true.
- /// </summary>
- /// <typeparam name="T">Type of the return value. Caller must ensure to provide the valid type.</typeparam>
- /// <returns>Return value of the async operation.</returns>
- public T GetReturnValue<T>()
- {
- return (T)Internal_getReturnValue(mCachedPtr);
- }
- }
- /** @} */
- }
|