MappedByteBuffer.LoadAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Runs Load() on a thread-pool thread to try to bring this buffer's content into physical memory.
public System.Threading.Tasks.Task<Java.Nio.MappedByteBuffer?> LoadAsync();
member this.LoadAsync : unit -> System.Threading.Tasks.Task<Java.Nio.MappedByteBuffer>
Returns
A task whose result is the buffer returned by Load().
Remarks
This .NET wrapper uses Run<TResult>(Func<TResult>) to call the synchronous method. It does not use native asynchronous file I/O and has no cancellation parameter. The task completes when the synchronous call finishes and reports any exception from that call. Like Load(), it makes a best effort to load the content; it does not guarantee that the content remains in physical memory.
.NET asynchronous wrapper generator.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.