# US 2021/0232482 A1 · Self executing and self disposing signal

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0232482 A1
- Document ID: US20210232482A1
- Status: Published application
- Kind: A1
- Application number: 17/232,998
- Filed: 2021-04-16
- Published: 2021-07-29
- Earliest claimed: 2019-11-26
- Assignees: salesforce.com, inc.
- Applicants: Salesforce.com, Inc.
- Inventors: Anthony Miller
- Web page: https://patentgrep.com/patent/US20210232482A1

## CPC

- G06F 11/3476: {Data logging (G06F11/14, G06F11/2205 take precedence)}
- G06F 8/22: {Procedural}
- G06F 8/31: {Programming languages or programming paradigms}
- G06F 11/3612: {by runtime analysis (performance monitoring G06F11/3466)}
- G06F 11/3644: {by instrumenting at runtime}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Described herein are systems, apparatus, methods and computer program products for implementing a self executing and self disposing signal for an imperative programming language. The self executing and self disposing signal may be utilized by a ReactiveX specification programming language. The signal may be executed before it is observed by an external observer, reducing load times. Additionally, the signal may allow for multiple observers to observe the output of the signal at the same time and may be self disposing to prevent memory leaks.

## Claims

### Claim 1

A method for processing a signal using imperative programming, the method comprising:
creating, based on a first indication within a first code, a signal;
determining that the signal is observed by an internal observer;
begin processing of the signal based on the determining that the signal is observed by the internal observer;
receiving, by the internal observer, an output from the processing of the signal based on the internal observer observing the signal; and
providing, by the internal observer, the output to one or more of a plurality of external observers observing the internal observer.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
creating the internal observer.

### Claim 3 (depends on 2)

The method of claim 2, wherein the internal observer is created along with the signal, and wherein the internal observer observes the signal after the creating of the internal observer.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
determining, after the beginning the processing of the signal, that the internal observer is observed by the one or more of the plurality of external observers.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
determining, after the beginning processing of the signal, that the signal is not being referenced by the first code;
determining, after the determining that the internal observer is observed by the one or more of the plurality of external observers, that the internal observer is not being observed by any external observers; and
disposing the signal based on the determining that the internal observer is not being observed by any external observers and the determining that the signal is not being referenced by the first code.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
deallocating the signal from memory after disposing the signal.

### Claim 7 (depends on 1)

The method of claim 1, wherein:
the beginning the processing of the signal is at a first time;
the observing, by the one or more of the plurality of external observers, the internal observer is at a second time; and
the first time is before the second time.

### Claim 8 (depends on 1)

The method of claim 1, wherein the signal is a ReactiveX specification signal.

### Claim 9

A computer program product comprising computer-readable program code capable of being executed by one or more processors when retrieved from a non-transitory computer-readable medium, the computer-readable program code comprising instructions configurable to cause operations comprising:
creating a signal;
determining that the signal is observed by an internal observer;
begin processing of the signal based on the determining that the signal is observed by the internal observer;
receiving, by the internal observer, an output from the processing of the signal based on the internal observer observing the signal; and
providing, by the internal observer, the output to one or more of a plurality of external observers observing the internal observer.

### Claim 10 (depends on 9)

The computer program product of claim 9, wherein the operations further comprise:
creating the internal observer.

### Claim 11 (depends on 10)

The computer program product of claim 10, wherein the internal observer is created along with the signal, and wherein the internal observer observes the signal after the creating of the internal observer.

### Claim 12 (depends on 9)

The computer program product of claim 9, wherein the operations further comprise:
determining, after the beginning the processing of the signal, that the internal observer is observed by the one or more of the plurality of external observers.

### Claim 13 (depends on 12)

The computer program product of claim 12, wherein the signal comprises a disposable, and wherein the operations further comprise:
determining, with the disposable, that conditions for disposing of the signal have been met, wherein the conditions for disposing of the signal comprise:
that the signal is no longer referenced by the computer-readable program code; and
that the internal observer is not being observed by any external observers; and
disposing the signal.

### Claim 14 (depends on 13)

The computer program product of claim 13, wherein the conditions for disposing of the signal further comprise:
receiving an instruction to cease operation of the signal.

### Claim 15 (depends on 9)

The computer program product of claim 9, wherein the beginning the processing of the signal is before any external observers are observing the internal observer,

### Claim 16

A computing system implemented using a server system, the computer system comprising:
a processor;
a memory;
a signal function configured to begin processing a signal when observed by an observer and return an output based on the processing of the signal function; and
an internal observer configured to observe the signal function to begin the processing of the signal function and receive the output from the processing of the signal function, wherein the internal observer is further configured to be observed by a plurality of external observers to allow the plurality of external observers to each view the output from the processing of the signal function.

### Claim 17 (depends on 16)

The computing system of claim 16, further comprising:
a disposable configured to:
determine that the signal is not being referenced by program code;
determine that the internal observer is not being observed by any external observers; and
cause, based on the determining that the signal is not being referenced by the program code and by any external observers, disposal of the signal.

### Claim 18 (depends on 16)

The computing system of claim 16, further comprising:
the plurality of external observers.

### Claim 19 (depends on 16)

The computing system of claim 16, wherein the internal observer comprises a buffer configured to store a pre-determined number of outputs and to allow the plurality of external observers to view the pre-determined number of outputs.

### Claim 20 (depends on 16)

The computing system of claim 16, wherein the signal function is a ReactiveX specification signal function.
