This seems like a matter of preference, really. Both using suspend
and not using it have disadvantges, so you have to choose which weigh less.
From what you write, it seems that the advantages of using suspend
(write code only once) outweigh the disavantage of polluting the interface with an unnecessary modifier. I am not aware of the possible runtime overheads here. Personally, I would opt to go with suspend
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…