Кажется, из этого можно сделать пасту.
I figured out how to use static_init, inventory, and flume to make a channels based dataloader based around constructing a static dataloader per macro call to get around the inability to generalize statics and leveraging interior mutability to move the channel receiver into a background tokio task loop for batched processing.