Function mnemos_alloc::heap::alloc
source ยท pub async fn alloc(layout: Layout) -> NonNull<u8>
Expand description
Asynchronously allocate with the given Layout.
Analogous to alloc::alloc::alloc(), but will never return a null pointer, and will instead yield until allocation succeeds (which could theoretically be never).