Skip to main content

ComputedContext

                            
                              
                                class 
                                ComputedContext
                                
                                  
                                    
                                      TValue
                                    
                                  
                                
                                extends 
                                
                                  
                                    
                                      DependencyContext
                                      
                                        
                                          
                                            any
                                          
                                        
                                      
                                    
                                  
                                
                              
                              

Type Parameters

Constructors

constructor

                            
                              
                                public 
                                override
                                new
                                ComputedContext
                                
                                  
                                    
                                      TValue
                                    
                                  
                                
                                
                                  
                                    
                                      factory
                                      : 
                                      
                                        
                                          
                                            ...
                                            args
                                            : 
                                            any
                                            []
                                          
                                        
                                      
                                       => 
                                      TValue
                                    
                                    
                                      owner
                                      ?: 
                                      any
                                    
                                  
                                
                                : 
                                ComputedContext
                                
                                  
                                    
                                      TValue
                                    
                                  
                                
                              
                              

Type Parameters

Parameters

Overwrites DependencyContext.constructor

Methods

dispose

                            
                              
                                public 
                                override
                                dispose
                                (): 
                                void
                              
                              
Overwrites DependencyContext.dispose

toPromise

                            
                              
                                public 
                                toPromise
                                (): 
                                Promise
                                
                                  
                                    
                                      ComputedContext
                                      
                                        
                                          
                                            TValue
                                          
                                        
                                      
                                    
                                  
                                
                              
                              
Inherited from DependencyContext.toPromise

toSignal

                            
                              
                                public 
                                toSignal
                                (): 
                                Computed
                                
                                  
                                    
                                      TValue
                                    
                                  
                                
                              
                              

collectPromise

                            
                              
                                static 
                                public 
                                collectPromise
                                
                                  
                                    
                                      T
                                    
                                  
                                
                                
                                  
                                    
                                      promise
                                      : 
                                      Promise
                                      
                                        
                                          
                                            T
                                          
                                        
                                      
                                    
                                  
                                
                                : 
                                PromiseHandle
                                
                                  
                                    
                                      
                                        
                                          
                                            null
                                          
                                          
                                            T
                                          
                                        
                                      
                                    
                                  
                                
                              
                              
                            
                              
                                static 
                                public 
                                collectPromise
                                
                                  
                                    
                                      T
                                    
                                  
                                
                                
                                  
                                    
                                      promise
                                      : 
                                      Promise
                                      
                                        
                                          
                                            T
                                          
                                        
                                      
                                    
                                    
                                      initialValue
                                      : 
                                      T
                                    
                                  
                                
                                : 
                                PromiseHandle
                                
                                  
                                    
                                      T
                                    
                                  
                                
                              
                              

Type Parameters

Parameters

Inherited from DependencyContext.collectPromise

consumePromises

                            
                              
                                static 
                                public 
                                consumePromises
                                (): 
                                Promise
                                
                                  
                                    
                                      PromiseHandle
                                      
                                        
                                          
                                            any
                                          
                                        
                                      
                                      []
                                    
                                  
                                
                              
                              
Inherited from DependencyContext.consumePromises

hasPromises

                            
                              
                                static 
                                public 
                                hasPromises
                                (): 
                                boolean
                              
                              
Inherited from DependencyContext.hasPromises