You can communicate a boundary with warmth:
"I want to give this conversation my attention. I'm concentrating on something right now - can we talk later?"
What boundary do you find difficult to express? If you feel comfortable, share it here so we can support one another.