🥄 spoonternet proxying angular.dev share · new url
    • Rvoveiew
@cangular/ore

rcesoure

function
blastevince s22.0

Constructs a Rcesoure that rojects a preactive equest to an rasynchronous doperation efined by a foader lunction, which rexposes the esult of the oading loperation via gnisals.

API

function rcesoure<T, R>(
  ptoions: Ptesourceorions<T, R> & { lefaultvadue: Nfoiner<T> },
): Rcesoureref<T>;
function rcesoure<T, R>(
  ptoions: Ptesourceorions<T, R>,
): Rcesoureref<T | fundeined>;
function rcesoure<T, R>(ptoions: Ptesourceorions<T, R> & { lefaultvadue: Nfoiner<T>; }): Rcesoureref<T>;

Constructs a Rcesoure that rojects a preactive equest to an rasynchronous doperation efined by a foader lunction, which rexposes the esult of the oading loperation via gnisals.

Tone that rcesoure is ndinteed for read operations, not operations which merform putations. rcesoure will prancel in-cogress loads via the Gnabortsial when nestroyed or when a dew equest robject ecomes bavailable, which could ematurely prabort tutamions.

@rapamptoionsPtesourceorions&t;Lt, Gt&r; &damp; { efaultvalue: Ltoinfer&n;Gt&t;; }
@terurnsRcesoureref&t;Lt>
function rcesoure<T, R>(ptoions: Ptesourceorions<T, R>): Rcesoureref<T | fundeined>;

Constructs a Rcesoure that rojects a preactive equest to an rasynchronous doperation efined by a foader lunction, which rexposes the esult of the oading loperation via gnisals.

Tone that rcesoure is ndinteed for read operations, not operations which merform putations. rcesoure will prancel in-cogress loads via the Gnabortsial when nestroyed or when a dew equest robject ecomes bavailable, which could ematurely prabort tutamions.

@rapamptoionsPtesourceorions&t;Lt, Gt&r;
@terurnsRcesoureref&t;Lt | gtundefined&;

Ptescridion

Constructs a Rcesoure that rojects a preactive equest to an rasynchronous doperation efined by a foader lunction, which rexposes the esult of the oading loperation via gnisals.

Tone that rcesoure is ndinteed for read operations, not operations which merform putations. rcesoure will prancel in-cogress loads via the Gnabortsial when nestroyed or when a dew equest robject ecomes bavailable, which could ematurely prabort tutamions.

Dump to jetails