Skip to main content

DependencyContext

                            
                              
                                class 
                                DependencyContext
                                
                                  
                                    
                                      TOwner
                                       = 
                                      void
                                    
                                  
                                
                                implements 
                                
                                  
                                    
                                      Promisable
                                      
                                        
                                          
                                            DependencyContext
                                            
                                              
                                                
                                                  TOwner
                                                
                                              
                                            
                                          
                                        
                                      
                                    
                                  
                                
                              
                              

Type Parameters

Extended by

  • ComputedContext
  • DeferredEffectContext
  • EffectContext
  • SignalContext

Constructors

constructor

                            
                              
                                public 
                                new
                                DependencyContext
                                
                                  
                                    
                                      TOwner
                                       = 
                                      void
                                    
                                  
                                
                                
                                  
                                    
                                      owner
                                      : 
                                      TOwner
                                    
                                  
                                
                                : 
                                DependencyContext
                                
                                  
                                    
                                      TOwner
                                    
                                  
                                
                              
                              

Type Parameters

Parameters

Methods

dispose

                            
                              
                                public 
                                dispose
                                (): 
                                void
                              
                              

toPromise

                            
                              
                                public 
                                toPromise
                                (): 
                                Promise
                                
                                  
                                    
                                      DependencyContext
                                      
                                        
                                          
                                            TOwner
                                          
                                        
                                      
                                    
                                  
                                
                              
                              

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


consumePromises

                            
                              
                                static 
                                public 
                                consumePromises
                                (): 
                                Promise
                                
                                  
                                    
                                      PromiseHandle
                                      
                                        
                                          
                                            any
                                          
                                        
                                      
                                      []
                                    
                                  
                                
                              
                              

hasPromises

                            
                              
                                static 
                                public 
                                hasPromises
                                (): 
                                boolean