Open anoxic opened 7 years ago
I like your callback idea, seems interesting, although I'm not sure how you'd implement it.
I was thinking with mysqli::poll, however thinking about it, that wouldn't really work unless we have some function that applies them at the end. I am not sure how much more useful this would be over just having query_async
.
$db->query_callback($callable1, $query1);
$db->query_callback($callable2, $query2);
/* ... other things ... */
$db->apply_callbacks();
Some type of asynchronous support would be very great. Some options for a callback could also be interesting.
I would be willing to implement this. Do you have any thoughts here?