Credit card repayment is real-time, and you can swipe your card immediately. In fact, the bank has no clear regulations on this time. Even after repayment, it is ok to swipe your card again.
However, the credit card and repayment can be separated by more than half an hour, mainly to avoid the risk control of banks. If you take it out immediately after returning it, it will lead to a decrease in the quota.