Gas absorption and desorption with reversible instantaneous chemical reaction