diff --git a/source/vibe/core/channel.d b/source/vibe/core/channel.d index 3553b9e..9295cbc 100644 --- a/source/vibe/core/channel.d +++ b/source/vibe/core/channel.d @@ -84,7 +84,8 @@ struct Channel(T, size_t buffer_size) { avaiable, `dst` will be left untouched and `false` is returned. */ bool consumeAll(ref FixedRingBuffer!(T, buffer_size) dst) - { return m_impl.consumeAll(dst); } + in { assert(dst.empty); } + body { return m_impl.consumeAll(dst); } /** Enqueues an element.