While some people certainly can multitask in this industry, the vast majority that I know (including myself) definitely find it more difficult to get things done (and done well) when handling multiple tasks at once, and can decrease efficiency with an overhead between each task change. A couple solutions that have worked for me:
Don't be afraid to block out "focus time" in your calendar/DND on your IM to not be interrupted and focus on one thing
Break your tasks into the smallest pieces possible because smaller tasks are generally easier to drop and pick up again later with less overhead (notably this advice has multiple other benefits too)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
While some people certainly can multitask in this industry, the vast majority that I know (including myself) definitely find it more difficult to get things done (and done well) when handling multiple tasks at once, and can decrease efficiency with an overhead between each task change. A couple solutions that have worked for me: