def fetch_with
cswap-bend-cli@0.1.0.0 · usage.bend:197
import cswap-bend-cli@0.1.0.0/usage.bend as Usage
import Base
import cswap-bend-cli@0.1.0.0/clock.bend as Clock
import cswap-bend-cli@0.1.0.0/usage/cred.bend as UCred
import cswap-bend-cli@0.1.0.0/usage/gate.bend as UGate
197
198
199
200
201
202def fetch_with(gate: UGate.Gate, +credential: String, is_active: Bool) -> IO(Fetched):
203 do IO<Fetched>:
204 now : U32 <- Clock.now_s()
205 off : U32 <- local_offset()
206 fetch.start(UCred.access_token(UCred.oauth.of(credential)), gate, credential, UCred.oauth.of(credential), is_active, now, off)