Question about multiple concurrent tasks using Serial, and Wire

Welcome!
Sounds like you might be talking about an ESP32 - how about telling us for sure? While you're thinking about that, please read:

which I have to assume you blew past in haste in order to post your question.