Can I have my screenshot files written immediately in Mojave?
You can take screenshots instantly by turning off the thumbnail preview.

This can be achieved by opening the screenshot utility and uncheck the "Show Floating Thumbnail" button.



(3rd last option from below)

The options also allow you to set a timer for taking screenshots.