Skip to content

Why are we pausing in src/main/java/JSR353/JSON/YahooFinanceStub.java? #6

@neomatrix369

Description

@neomatrix369
 46 
  •        writeJSONObjectToConsoleOnlyOnce(symbol, price);
    
    47
    +
    48
  •        // Implementation of JsonWriter & JsonReader in JSR-353
    
    49
  •        /*
    
    50
  •         \* Writes/Reads the specified JSON object or array to the output source.
    
    51
  •         \* This method needs to be called only once for a reader/writer instance - hence running only once.
    
    52
  •         */
    
    53
  •        writeJSONObjectToStreamOnlyOnce(symbol, price);
    
    54
    +
    55
  •        // Implementation of JsonObject & JsonObjectBuilder in JSR-353
    
    56
  •        // Returns a Json object with a symbol and price - continuously
    
    57
  •        logger.log(Level.INFO, "JsonObject: {0}", getJSONObjectFromValues(symbol, price));
    
    58
    +
    59
  •        // Then pause for a bit...before starting all over again
    
    60
  •        pauseForABit(1000);  <======= here?
    
    61
  •    }
    

@karianna: Why are we pausing ?
@neomatrix369: Needs further investigating and fixing after inquiring with @sivajik!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions